On 09/24/2012 12:40 AM, Jonathan M Davis wrote:
On Monday, September 24, 2012 00:30:27 jerro wrote:
If D is like C in this regard, then the function above cannot
replace comma operator, because the order of evaluation is
defined for comma operator, but not for function parameters.
I believe that it's currently undefined for D, but Walter wants to define it so
that it's left-to-right in an effort to eliminate bugs resulting from the
varying order of function argument evaluation. He just hasn't gotten around to
doing it yet.
- Jonathan M Davis
I believe it is currently left-to-right for D, in all kinds of
expressions, but DMD does not implement it yet.