New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sub EXPORT loaded inside precompiled module doesn't seem to be run #1371
Comments
EDIT: just now noticed the |
This is correct behavior. A |
Thanks. |
- Toss example of evil hack as it won't work right with precomp - Document the precompilation caveat and how to deal with it per rakudo/rakudo#1371 (comment)
This looks very related to #1369
I modify a lexical in sub EXPORT:
And I load this module inside another module and export another routine that calls the routine from the first module that prints that lexical:
I then load both modules, with the 'Bar.pm6' loaded second, yet when I use the routines to dump the lexical, I get only the value from the module that got loaded first and the
dd
thatBar.pm6
would've run doesn't get run:But, if I stick
no precompilation
intoBar.pm6
, then it works fine and the routines dump the value set byBar.pm6
's loading:The text was updated successfully, but these errors were encountered: