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
Could not find symbol '&EXPORT' #5160
Comments
From bahtiar@gadimov.deHi, trying to access the EXPORT in a module fails when done like this: module Foo::Bar { plan 2; is Foo::Bar::EXPORT::ALL::.elems, 2; my \module = Foo::Bar; is Foo::Bar::.keys, module::.keys; diag module::EXPORT::.keys; # fails with Could not find symbol '&EXPORT'} while talking about this in #perl6 @perlpilot noticed the following: ``` Thanks |
From @zoffixznetNot sure if it's a bug, but it's still present in Rakudo version 2016.06-154-g55c359e built on MoarVM version 2016.06-9-g8fc21d5 I tried using $module instead of module and this was the result: zoffix@VirtualBox:/tmp/tmp.yz8WXXEuu2$ cat x.p6 plan 2; is Foo::Bar::EXPORT::ALL::.elems, 2; my $module = Foo::Bar; is Foo::Bar::.keys, $module::.keys; diag $module::EXPORT::.keys; # Failed test at x.p6 line 15 # Looks like you failed 1 test of 2 |
From @skidsOn Sun, 10 Jul 2016 16:19:34 -0700, cpan@zoffix.com wrote:
Is $module:: valid syntax for that? Would that not try to look up As for the original, it seems the tests succeed (at least on current (01:11:53 AM) skids: m: use v6; use Test; module Foo::Bar { sub first is export {}; sub second is export {}; }; plan 2; is Foo::Bar::EXPORT::ALL::.elems, 2; my \module = Foo::Bar; is Foo::Bar::.keys, module::.keys; diag module::EXPORT::.keys; say Foo::Bar::EXPORT::ALL::.keys; say Foo::Bar::.keys; say module::.keys; ...and it quite possibly should. I don't think that constant definitions $ perl6 -e 'use v6; module Foo { our constant Bar = 42 }; Foo::Bar.say; my \module = Foo; module::<Bar>.say; module::Bar.say' ...the postfix :: may be a special case, but I can't seem to find where that might be specced. |
The RT System itself - Status changed from 'new' to 'open' |
Migrated from rt.perl.org#127653 (status was 'open')
Searchable as RT127653$
The text was updated successfully, but these errors were encountered: