Am Mon, 31 Mar 2014 18:00:07 +0100 schrieb Iain Buclaw <[email protected]>:
> On 28 March 2014 22:12, Ali Çehreli <[email protected]> wrote: > > On 03/28/2014 03:05 PM, Timon Gehr wrote: > > > >> On 03/28/2014 10:56 PM, Ali Çehreli wrote: > > > >>> It is undefined behavior in both languages. > >> > >> How do you reach that conclusion in the case of D? > > > > By trusting my ignorance on such an execution order in D. :) > > > > Walter has been saying for a while that D will eventually make some > > execution orders standard (e.g. for function arguments). I would > > like to know if the situation has improved. > > > > Regardless of what anyone says. So long as this bug is open (linked), > then order of evaluation can only be regarded as undefined. :-) > > http://bugzilla.gdcproject.org/show_bug.cgi?id=8 > > Regards > Iain. > I have a fix + test cases for that issue for GDC btw (function call order, array op order, assignment order). But the frontend code changed between 2.064 and 2.065 (visitor related) so I'll port it to 2.065 first, then merge it into dmd and probably only merge back into gdc after the 2.065 frontend has been merged.
