On Fri Feb 13 10:06:37 2009, jn...@jnthn.net wrote:
> On Sat Dec 27 14:08:48 2008, publiustemp-perl6us...@yahoo.com wrote:
> >     subset Letter of Str where { $_ =~ /^ <[a..z]> $/ };
> > 
> >     ...snip...
> > 
> That's a Perl 5-o. :-) You likely meant:
> 
> subset Letter of Str where { $_ ~~ /^ <[a..z]> $/ };
> 
> ...snip...
> 
> * I think both cases should give the "cannot assign to readonly
> variable" warning because the $_ should be read-only inside that block.
> 
> So to resolve this ticket we should do the second of these.
> 
And as of git 0f87695 this now fails with the read-only error in all
cases, not just the second one. (It may well segfault after giving the
error, but that's a Parrot issue that we already have plenty of open
tickets for, so resolving this one).

Plus added tests. :-)

Thanks,

Jonathan

Reply via email to