On Thu Apr 22 16:50:53 2010, masak wrote:
> <ash_> rakudo: my $x = package {...}
> <p6eval> rakudo 7d43ee: OUTPUT�error:imcc:syntax error, unexpected
')'
> (')') [...]
> * masak submits rakudobug
> <masak> rakudo: package {}
> <p6eval> rakudo 7d43ee: ( no output )
> <masak> rakudo: my $x = package Foo {}
> <p6eval> rakudo 7d43ee: OUTPUT�Null PMC access in can() [...]
> <masak> ooh, two in one!
> <jnthn> Well, same underlying issue
> <jnthn> Because I know that Rakudo has no concept of non-our package
> <masak> rakudo: my $x = our package { ... }
> <p6eval> rakudo 7d43ee: OUTPUT�error:imcc:syntax error, unexpected
')'
> (')') [...]
> <jnthn> That should complain that an our-scoped package should have a
> name, I guess.
> <masak> rakudo: my $x = our package Foo { ... }
> <p6eval> rakudo 7d43ee: OUTPUT�error:imcc:syntax error, unexpected
')'
> (')') [...]
> <masak> and that one?
> <jnthn> To clarify what I wrote before
> <jnthn> Rakudo has no concept of non-our package or any package not in
> sink context.
> <masak> ah.
> <jnthn> class and role do know what to do.
> <jnthn> In such cirumstances.
These all look more reasonable now:
> my $x = package {...}
The following packages were stubbed but not defined:
<anon>
> package {}
<anon>()
> my $x = package Foo {}
Foo()
> my $x = our package { ... }
The following packages were stubbed but not defined:
<anon>
> my $x = our package Foo { ... }
The following packages were stubbed but not defined:
Foo
>
Tests needed.
--
Will "Coke" Coleda