You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# lib/Foo.pm
use Test;
sub EXPORT {
say GLOBAL.^name; #-> NQPMu
say Test; #-> (Test)
say ::('Test'); #-> Cannot find method 'EXISTS-KEY': no method cache
and no .^find_method
}
#This is perl6 version 2015.07.1-111-ge0f7259 built on MoarVM version
2015.07-8-gb8fdeae
Test is just there as an example symbol for a valid indirect call. This was
working not too long ago afaik.
Workaround: An empty BEGIN {} before 'use Foo', makes GLOBAL work in EXPORT.
On Fri, Aug 14, 2015 at 9:26 PM, perl6 via RT <perl6-bugs-followup@perl.org>
wrote:
Greetings,
This message has been automatically generated in response to the
creation of a trouble ticket regarding:
"[BUG] GLOBAL is NQPMu in sub EXPORT which breaks indirect calls",
a summary of which appears below.
There is no need to reply to this message right now. Your ticket has been
assigned an ID of [perl #125808].
Please include the string:
\[perl #​125808\]
in the subject line of all future correspondence about this issue. To do
so,
you may reply to this message.
Thank you,
perl6\-bugs\-followup@​perl\.org
-------------------------------------------------------------------------
# lib/Foo.pm
use Test;
sub EXPORT {
say GLOBAL.^name; #-> NQPMu
say Test; #-> (Test)
say ::('Test'); #-> Cannot find method 'EXISTS-KEY': no method cache
and no .^find_method
}
#This is perl6 version 2015.07.1-111-ge0f7259 built on MoarVM version
2015.07-8-gb8fdeae
Test is just there as an example symbol for a valid indirect call. This was
working not too long ago afaik.
Migrated from rt.perl.org#125808 (status was 'new')
Searchable as RT125808$
The text was updated successfully, but these errors were encountered: