At first sight this looks good now:

$ perl6-j -e 'class Foo is repr<CStruct> { has int32 $.idontcare; has Foo $.bar 
}; my $a = Foo.new; say "alive"'
alive

Unfortunatly, another NullPointerException surfaces when looking at the newly 
created $a:

$ perl6-j -e 'class Foo is repr<CStruct> { has int32 $.idontcare; has Foo $.bar 
}; my $a = Foo.new; say $a.bar'
java.lang.NullPointerException
  in block <unit> at -e:1

Compare with rakudo.moar:

$ perl6-m -e 'class Foo is repr<CStruct> { has int32 $.idontcare; has Foo $.bar 
}; my $a = Foo.new; say $a.bar'
(Foo)

Reply via email to