# New Ticket Created by  Lloyd Fournier 
# Please include the string:  [perl #126880]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=126880 >


1. by itself
#lib/noprecomp.pm
no precompilation;
my $_;

perl6 -Ilib -e 'need noprecomp;'

Use of uninitialized value %ENV of type Any in string context
Any of .^name, .perl, .gist, or .say can stringify undefined things, if
needed.  in any mop_up_and_check at src/Perl6/World.nqp:401
Potential difficulties:
    Redeclaration of symbol $_
...

2. from another module (dies painfully)
#lib/noprecomp2;
no precompilation;
need noprecomp;

perl6 -Ilib -e 'need noprecomp2;'

Use of uninitialized value %ENV of type Any in string context
Any of .^name, .perl, .gist, or .say can stringify undefined things, if
needed.  in any mop_up_and_check at src/Perl6/World.nqp:401
===SORRY!===
This type cannot unbox to a native integer

Much of the problems comes from @*MODULES not being used consistently:

in pre curli code it's entries are assumed to be hashes:
https://github.com/rakudo/rakudo/blob/nom/src/core/Exception.pm#L512

however in new code it's just an array of strings:
https://github.com/rakudo/rakudo/blob/nom/src/core/CompUnitRepo.pm#L81

Reply via email to