Skip Menu |
Report information
Id: 132416
Status: new
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: alexk [at] gmx.net
Cc:
AdminCc:

Severity: (no value)
Tag: (no value)
Platform: (no value)
Patch Status: (no value)
VM: (no value)



Subject: Symbols in nested packages not found in some cases
Date: Wed, 8 Nov 2017 17:43:52 +0100
From: "Alex K-" <alexk [...] gmx.net>
To: rakudobug [...] perl.org
 
 
 
> perl6 -v This is Rakudo version 2017.10 built on MoarVM version 2017.10 implementing Perl 6.c.
 
> perl6 -e 'package FOO { package BAR { package FOO::BAR { our $foobar = 42 }}}; say $FOO::BAR::FOO::BAR::foobar; say FOO::BAR::FOO::BAR.WHAT;' (Any) Could not find symbol '&BAR'   in block <unit> at -e line 1
 
> perl6 -e 'package FOO { package BAR { package GOO::BAR { our $foobar = 42 }}}; say $FOO::BAR::GOO::BAR::foobar; say FOO::BAR::GOO::BAR.WHAT;' 42 (BAR)
 
> perl6 -e 'package FOO::BAR::FOO::BAR { our $foobar=42; }; say $FOO::BAR::FOO::BAR::foobar; say FOO::BAR::FOO::BAR.WHAT;' 42 (BAR)


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org