develooper Front page | perl.perl5.porters | Postings from August 2018

[perl #133301] Evalulation order during concat changed

Thread Previous | Thread Next
From:
sisyphus@cpan.org via RT
Date:
August 11, 2018 02:44
Subject:
[perl #133301] Evalulation order during concat changed
Message ID:
rt-4.0.24-678-1533955437-1441.133301-15-0@perl.org
On Fri, 10 Aug 2018 14:21:02 -0700, Eirik-Berg.Hanssen@allverden.no wrote:
 
>   Oh, yes it is: The docs for associativity here speak of the order in
> which the ("same-operator") _operations_ will be evaluated – not the order
> in which their _operands_ will be evaluated.

Which would mean that for $x=8, $y=4, the expression "$x - $y - ($y=2)" could acceptably evaluate to 4 ?

If the docs don't already specify the order in which the operands will be evaluated, then perhaps they ought to - even if it's just to state that the order is undefined.

Cheers,
Rob

---
via perlbug:  queue: perl5 status: open
https://rt.perl.org/Ticket/Display.html?id=133301

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About