Is evaluation order unspecified or left-to-right?

Bug #897070 reported by Matt Giuca
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mars
Fix Committed
Medium
Matt Giuca

Bug Description

The Expressions page in the documentation says this for function application:

"The order in which these side-effects take place is undefined, except that all side-effects produced by one statement occur before its successor statement."

but then it says this for partial application:

"The evaluation of this expression first causes f and each vi to be evaluated, in order from left to right"

It doesn't actually specify the evaluation order for any other subexpressions (arrays, field replace, etc).

There should be a separate section on evaluation order to make it quite clear.

Tags: docs

Related branches

Revision history for this message
Matt Giuca (mgiuca) wrote :

Fixed in trunk r1292.

Changed in mars:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.