On Sun Mar 28 15:06:50 2010, masak wrote:
> <jnthn> rakudo: my $foo = 'rofl harris'; given $foo { .=subst(/rofl/,
> 'rolf'; }; say $foo

ENOCLOSINGPAREN?

> <p6eval> rakudo 8f7d29:  ( no output )
> <jnthn> Locally it whines about $_ being readonly.
> <jnthn> I'm not sure if that's a bug.
> <masak> I thought the default setting was '<-> $_'
> <masak> i.e. '-> $_ is rw'
> <jnthn> probably is parcel rather than is rw
> <jnthn> But yes
> <jnthn> Provided that applies to given, which I guess it should...
> <masak> so...? submitarakudobug?
> <jnthn> yesithinkyoushouldindeeddothat.
> * masak submitsarakudobughoworiginal
> 
> S04:567 says that the default is '<-> $_' for for. As far as I can
> see, it doesn't mention the same for given, but it seems to make sense
> that it does the same.


-- 
Will "Coke" Coleda

Reply via email to