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; } However, I agree that $Package::var is weird since the variable's name is $var, not just var. Package::$var looks really odd to me, but maybe it's the right thing to do. For interpolation, we could just force curlies; package variables aren't interpolated much anyway. Luke