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
Issues with CALLER invocations in a precompiled module with subs exported by a zef/panda installed module #5402
Comments
From @zoffixznetThe Pretty::Topic module exports this sub: sub term:<♥> { $CALLER::_ } If a user-made module uses Pretty::Topic and invokes that sub, `Cannot invoke this object` error occurs. The error goes away if the user-made module has `no precompilation` pragma. The issue does not occur if the sub term:<♥> { $CALLER::_ } is defined in a user-made module (and not something installed with panda/zef) or if the Pretty::Topic is included in a script and not a precompiled module: $ tree 0 directories, 1 file $ cat A.pm6 $ perl6 -I. -MA -e 'A.new.update' $ pico A.pm6 $ cat A.pm6 $ perl6 -I. -MA -e 'A.new.update' $ perl6 -e 'use Pretty::Topic "♥"; say ♥ for ^4;' |
From @LLFournI think this is another *compile-time closure loses it's outer ctx at Your lovely module has a compile time closure here (EXPORT Is called at https://github.com/zoffixznet/perl6-Pretty-Topic/blob/master/lib/Pretty/Topic.pm6#L8 If you actually did do: sub term:<♥> is export { $CALLER::_ } it would probably work. On Sat, Jun 25, 2016 at 11:19 PM Zoffix Znet <perl6-bugs-followup@perl.org>
|
The RT System itself - Status changed from 'new' to 'open' |
From @zoffixznetThe error message changed slightly (mentions '(REPR: Null; VMNull)' now): $ perl6 -v $ perl6 -I. -MA -e 'A.new.update' |
Migrated from rt.perl.org#128483 (status was 'open')
Searchable as RT128483$
The text was updated successfully, but these errors were encountered: