# New Ticket Created by  Jeff Horwitz 
# Please include the string:  [perl #61742]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=61742 >


Rakduo's behavior has changed in the past two weeks -- as of r34349, 
it seems to evaluate "use" statements during the parse phase.  Among other 
things, this breaks precompilation when the "used" module is not in the 
@INC path during compilation.  This causing all sorts of problems for 
mod_perl6, which precompiles its modules.

Example:

[j...@groovy perl6]$ cat x.p6
use Foo;

[j...@groovy perl6]$ ../../parrot perl6.pbc --target=past x.p6
Can't find ./Foo in @INC
current instr.: 'die' pc 14705 (src/builtins/control.pir:204)
called from Sub 'require' pc 15075 (src/builtins/eval.pir:111)
called from Sub 'use' pc 15137 (src/builtins/eval.pir:134)
called from Sub 'parrot;Perl6;Grammar;Actions;_block598' pc 109316 
(src/gen_actions.pir:1962)
called from Sub 'parrot;Perl6;Grammar;Actions;use_statement' pc 109138 
(src/gen_actions.pir:1909)
called from Sub 'parrot;Perl6;Grammar;use_statement' pc 45201 
(src/gen_grammar.pir:9663)
called from Sub 'parrot;Perl6;Grammar;statement_control' pc 34050 
(src/gen_grammar.pir:5371)
called from Sub 'parrot;Perl6;Grammar;statement' pc 29125 
(src/gen_grammar.pir:3577)
called from Sub 'parrot;Perl6;Grammar;statementlist' pc 27178 
(src/gen_grammar.pir:2809)
called from Sub 'parrot;Perl6;Grammar;statement_block' pc 24716 
(src/gen_grammar.pir:1838)
called from Sub 'parrot;Perl6;Grammar;TOP' pc 20606 
(src/gen_grammar.pir:207)
called from Sub 'parrot;PCT;HLLCompiler;parse' pc 634 
(src/PCT/HLLCompiler.pir:388)
called from Sub 'parrot;PCT;HLLCompiler;compile' pc 428 
(src/PCT/HLLCompiler.pir:301)
called from Sub 'parrot;PCT;HLLCompiler;eval' pc 862 
(src/PCT/HLLCompiler.pir:500)
called from Sub 'parrot;PCT;HLLCompiler;evalfiles' pc 1217 
(src/PCT/HLLCompiler.pir:669)
called from Sub 'parrot;PCT;HLLCompiler;command_line' pc 1398 
(src/PCT/HLLCompiler.pir:759)
called from Sub 'parrot;Perl6;Compiler;main' pc 18946 (perl6.pir:162)

Reply via email to