[perl #55586] [BUG] Parrot no longer uses HLL_map types?

Will Coleda will at coleda.com
Fri Feb 6 13:25:59 UTC 2009


On Fri, Feb 6, 2009 at 8:21 AM, kjstol <parrotcode at gmail.com> wrote:
> On Fri, Feb 6, 2009 at 1:12 PM, James Keenan via RT <
> parrotbug-followup at parrotcode.org> wrote:
>
>> So here's the current state of what Coke originally posted:
>>
>> $ cat tclsh.pir
>> .HLL 'Tcl'
>> .loadlib 'tcl_group'
>>
>> .sub main :main
>> .param pmc argv
>> foo(argv)
>> .end
>>
>> .sub foo
>> .param pmc args :slurpy
>> $S0 = typeof args
>> say $S0
>> .end
>>
>> [li11-226:parrot] 504 $ ./parrot tclsh.pir
>> ResizablePMCArray
>>
>> How should we proceed?
>
>
> Disclaimer: I'm not entirely clear on what exactly is happening in a
> .loadlib.
> However, I don't see any .HLL_map'ping (either through the .HLL_map, or
> through the 'hll_map' method on (I think) the interpreter object).
> So, in order to see what's wrong, I think the .loadlib directive needs
> inspection.
>
> kjs
>

IIRC, the .loadlib was loading PMCs which used the C method of
declaring HLL-map; There was an map to RPA fromTclList.

The expected output here was that when invoking a sub, it would use
the TclList type to construct the slurpy args. (which worked in the
past).

-- 
Will "Coke" Coleda


More information about the parrot-dev mailing list