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
It looks like if Foo::Bar is loaded first, then loading Foo does not "update" the Foo namespace and it still remains the package or whatever (no idea how any of this stuff works):
2018.03.129 zoffix@VirtualBox/tmp/tmp.Bxz0IiPJW8$ tree
.
├── ./Foo
│ └── ./Foo/Bar.pm6
└── ./Foo.pm6
1 directory, 2 files
2018.03.129 zoffix@VirtualBox/tmp/tmp.Bxz0IiPJW8$ cat Foo/Bar.pm6
unit class Foo::Bar;
2018.03.129 zoffix@VirtualBox/tmp/tmp.Bxz0IiPJW8$ cat Foo.pm6
unit class Foo;
2018.03.129 zoffix@VirtualBox/tmp/tmp.Bxz0IiPJW8$ perl6 -I.
To exit type 'exit' or '^D'
> use Foo::Bar
Nil
> use Foo
Nil
> Foo.new
You cannot create an instance of this type (Foo)
in block <unit> at <unknown file> line 1
>
2018.03.129 zoffix@VirtualBox/tmp/tmp.Bxz0IiPJW8$ perl6 -v
This is Rakudo version 2018.03-129-g7572983a4 built on MoarVM version 2018.03-35-gafdcad424
implementing Perl 6.c.
2018.03.129 zoffix@VirtualBox/tmp/tmp.Bxz0IiPJW8$
2018.03.129 zoffix@VirtualBox/tmp/tmp.Bxz0IiPJW8$ perl6 -e 'class Foo::Bar {}; Foo.new'
You cannot create an instance of this type (Foo)
in block <unit> at -e line 1
The text was updated successfully, but these errors were encountered:
It looks like if
Foo::Baris loaded first, then loadingFoodoes not "update" theFoonamespace and it still remains the package or whatever (no idea how any of this stuff works):The text was updated successfully, but these errors were encountered: