On Saturday 06 September 2008 18:41:25 Patrick R. Michaud wrote:

> On Sat, Sep 06, 2008 at 05:02:44PM -0700, [EMAIL PROTECTED] wrote:
> > Log:
> > Add hll_map method to parrotinterpreter.pmc
>
> ...doesn't seem to work yet, at least not on my system:
>
> $ cat x.pir
> .HLL 'Perl6', ''
>
> .sub 'main' :main
>     $P0 = get_class 'Integer'
>     $P1 = subclass $P0, 'MyInt'
>
>     $P2 = getinterp
>     $P2.'hll_map'($P0, $P1)
>
>     $P3 = 'foo'()
>     say $P3                 # "3\n"
>     $S0 = typeof $P3
>     say $S0                 # "MyInt"
> .end
>
> .sub 'foo'
>     .return (3)
> .end
>
> $ ./parrot x.pir
> Segmentation fault

Nasty example, added as a test (and worked around) in r30847, and explained in 
RT #58636.  We need to rethink some of this design anyway when type ids go 
away, so we can live with this workaround briefly.

-- c

Reply via email to