On Wed Oct 01 13:03:29 2014, [email protected] wrote:
> > my ($a is readonly) = 5; say $a; $a++; say $a;
> 5
> 6
> 
> I think the last one should also result in a compile time error. But I
> don't know how to fix it.

AFAIU this doesn't die because '($a is readonly)' is parsed as a signature and 
is not checked as strictly as the assignments (see e.g. 
https://rt.perl.org/Ticket/Display.html?id=74664#txn-686876).

So, we're back to 'things have changed and infix:<::=> is used instead of a 
variable trait "is readonly"'. To be sure that the right exception is thrown 
when someone uses the old "is readonly", I added two tests to S03-binding/ro.t 
with commit https://github.com/perl6/roast/commit/8a07d59e32.

If I'm not mistaken, there is nothing else to do in this context. If that's not 
the case, please reopen the ticket.

Reply via email to