develooper Front page | perl.perl5.porters | Postings from July 2010

Re: Order of evaluation of terms (was peephole optimiser could prune more dead code)

Thread Previous | Thread Next
From:
David Golden
Date:
July 15, 2010 13:16
Subject:
Re: Order of evaluation of terms (was peephole optimiser could prune more dead code)
Message ID:
AANLkTikLsrWHZBhnyWudBTSZrj2UyIuv_gO6IuxsyP1Q@mail.gmail.com
On Thu, Jul 15, 2010 at 3:42 PM, Zefram <zefram@fysh.org> wrote:
> Precedence and associativity imply certain things about order of
> evaluation, but the implications are minimal.  In general, if a language
> does not have other specific guarantees about order of evaluation, any
> order is acceptable for the evaluation of the atomic terms and for the
> operations represented by the operators.  The order is constrained only
> by the inherent need for the operands of any single operation to have
> each been fully evaluated before that operation can take place.

Sounds like something that should go into perlop.

David

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