On Tue Aug 10 09:23:16 2010, pawel.pab...@implix.com wrote:
> 
> [18:05] <pmichaud> oh, hmmmm.
> [18:06] <pmichaud> that looks really wrong to me.
> [18:06] <bbkr> isn't it a parsebug? 
> [18:06] <bbkr> with precedence
> [18:06] <oha> it may be correct, to let a function be used as a RHS? mh...
> [18:07] <pmichaud> looks to me like STD.pm recently changed its idea of 
> list_assignment precedence
> [18:08] <bbkr> should i report this pi example somehow or is it expected 
> behavior?
> [18:09] <pmichaud> bbkr: you can report it
> 
> 
> $ perl6 -e 'say pi=4'
> 3.14159265358979
> Cannot modify readonly value
> 
> # behaves the same way as
> $ perl6 -e '(say pi)=4'
> 3.14159265358979
> Cannot modify readonly value
> 
> # expected behavior
> $ perl6 -e 'say (pi=4)'
> Cannot modify readonly value

This works now. Just needs tests.

-- 
Will "Coke" Coleda

Reply via email to