On Fri, Oct 03, 2014 at 06:48:50AM -0700, Carl Mäsak wrote:
> <masak> m: class C { has $.sep = "|"; method foo { .say for
> "foo|bar".split(/$!sep/).map(~*) } }; C.new.foo
> <camelia> rakudo-moar da3aae: OUTPUT«foo|bar»
> <masak> TuxCM: interesting.
> * masak submits rakudobug
14:09 <pmichaud> m: class C { has $.rx = 'bc'; method foo { say 'abcd' ~~
/$!rx/; } }; C.new.foo
14:09 <camelia> rakudo-moar da3aae: OUTPUT«Nil»
14:10 <pmichaud> I'm guessing that regexes don't know how to interpolate $!vars
14:10 <pmichaud> m: class C { has $.rx = 'bc'; method foo { say $!rx; say
'abcd' ~~ /$!rx/; } }; C.new.foo
14:10 <camelia> rakudo-moar da3aae: OUTPUT«bcNil»
14:11 <moritz> or maybe the attribute lookup gets the cursor object as invocant?
Pm