On Sun Aug 09 09:36:23 2015, drf...@pobox.com wrote: > This code was copied from perl5's Carp module and crudely translated - > read: hacksaw, blowtorch and hammer applied until code compiled. I know > what it used to do in perl5, what it gets up to in perl6 is anyone's > guess, but it appears to be *bad*. I'm not sure that it *should* compile > in Perl6, but it certainly shouldn't cause the compiler to bail. And > yes, I'm running on latest moarVM. > > I'm certain that Perl6 classes and namespaces now work in an entirely > different fashion. I was just copying over Carp.pm to get its interface > to a new directory, and ran across this particular gem. > > --cut here-- > sub _fetch_sub { > %::{'$pack'}; > } > --cut here-- > > I should note in passing that it's the compile stage that's tripping up, > as there's nothing that invokes _fetch_sub() in the script. The error > suggests that the MoarVM compiler is walking off the end of an array > somewhere. > > --cut here-- > ===SORRY!=== > MVMArray: Index out of bounds > --cut here--
This now errors with: ===SORRY!=== Error while compiling /Users/williamcoleda/sandbox/rakudo/foo.p6 Variable '%' is not declared at /Users/williamcoleda/sandbox/rakudo/foo.p6:2 ------> ⏏%::{'$pack'}; Which seems reasonable. Can we close this ticket (perhaps with tests?) -- Will "Coke" Coleda