On Fri Apr 09 09:14:07 2010, masak wrote: > <masak> rakudo: class A { sub b { 0x10 }; has $!c = b }; A.new > <p6eval> rakudo 4c94d7: OUTPUT«Could not find sub &b [...] > <masak`> this is biting me currently. I use subs because constants > didn't work in classes in alpha, and don't work at all in master. > <masak> jnthn: any ideas why this might be? > <jnthn> masak: lexical scope f'up, I guess. > * masak submits rakudobug
Unf'up'd now. > class A { sub b { 0x10 }; has $!c = b; method c { say $!c } }; A.new.c 16 Given to moritz++ for spectesting. Thanks, Jonathan