On Tue, 28 Dec 2004 22:31:47 -0700, Luke Palmer <[EMAIL PROTECTED]> wrote:
> Ashley Winters writes:
> > sub foo (Class $who) {
> > my $thing := $who<$var>;
> > my &func := $who<&func>; # how would I do this otherwise?
> > }
>
> In current Perl 6:
>
> sub foo (Class $who) {
> my $thing := $::($who)::var;
> my &func := &::($who)::func;
> }
Okay, I see. S10 says ::() is the catch-all symbolic naming syntax.
However, $who would be a reference to a class object itself. Does it
automagically accept hard-references, or would Class objects have to
stringify to their global ::*::ClassName?
More to the point, is %::(%foo) an identity op?
Ashley