r: class A::B { my $c = 42; method foo { $A::B::c = "OH HAI"; say
$c } }; A::B.foo
rakudo 0eea68: OUTPUT«42»
r: class A::B { my $c = 42; method foo { $c = "OH HAI"; say
$A::B::c } }; A::B.foo
rakudo 0eea68: OUTPUT«Any()»
the former one is fine, I guess. at least if package stashes can
be
On Sun May 27 20:48:46 2012, coke wrote:
> On Sun Jul 24 07:11:16 2011, masak wrote:
> > rakudo: role R { method foo { self.bar(42) }; method bar($x)
> {
> > say "OH HAI" } }; class C does R { method foo { self.R::foo } };
> > C.new.foo
> > rakudo 922500: OUTPUT«OH HAI»
> > rakudo: role R { met
# New Ticket Created by "Carl Mäsak"
# Please include the string: [perl #114394]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org:443/rt3/Ticket/Display.html?id=114394 >
hi
looking at perl6 book, I tried the examples and find
something curious: http