On Wed Sep 16 14:51:47 2009, masak wrote:
> <masak> I smell a Null PMC access in the Force...
> <masak> rakudo: repeat while True {}
> <p6eval> rakudo 446d49: ( no output )
> <masak> rakudo: my $a = 1; repeat while $a< 10 { $^a.defined.say; }
> <p6eval> rakudo 446d49: OUTPUT«Null PMC access in find_method()
> * masak submits rakudobug
>
> Minimizing this a bit further, the program 'repeat while True {
> $^a.defined }' seems to do the trick
This no longer generates an NPE:
$ ./perl6
> repeat while True { $^a.defined }
Method 'defined' not found for invocant of class 'Undef'
--
Will "Coke" Coleda