On Tue Jun 30 13:41:37 2015, barto...@gmx.de wrote:
> On Mon Jun 29 14:21:31 2015, barto...@gmx.de wrote:
> > Unfortunatly, another NullPointerException surfaces when looking at
> > the newly created $a:
> >
> > $ perl6-j -e 'class Foo is repr { has int32 $.idontcare; has
> > Foo $.bar }; my $a =
Hmm, actually the second NPE is still there:
$ perl6-j -e 'class Foo is repr { has int32 $.idontcare; has Foo $.bar
}; my $a = Foo.new; say $a.bar'
java.lang.NullPointerException
in block at -e:1
On Mon Jun 29 14:21:31 2015, barto...@gmx.de wrote:
Unfortunatly, another NullPointerException surfaces when looking at
the newly created $a:
$ perl6-j -e 'class Foo is reprCStruct { has int32 $.idontcare; has
Foo $.bar }; my $a = Foo.new; say $a.bar'
java.lang.NullPointerException
in
At first sight this looks good now:
$ perl6-j -e 'class Foo is reprCStruct { 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 reprCStruct { has int32
The class definition no longer results in a NullPointerException:
$ perl6-j -e 'class Foo is reprCStruct { has int32 $.idontcare; has Foo $.bar
}; say alive'
alive
But it's not possible to create an object of class Foo (works on MoarVM):
$ perl6-j -e 'class Foo is reprCStruct { has int32
# New Ticket Created by Tobias Leich
# Please include the string: [perl #123969]
# in the subject line of all future correspondence about this issue.
# URL: https://rt.perl.org/Ticket/Display.html?id=123969
$ perl6-m -e 'class Foo is reprCStruct { has int32 $.idontcare; has
Foo $.bar }'
$