in reply to Re^2: Pre vs Post Incrementing variables in thread Pre vs Post Incrementing variables
I have noticed differences in later .Net versions of Visual Studio. I did not have them to hand when I wrote the node, and didn't want to guess. It could be that there is optimisation even in Debug. Check the project settings?
So far as I can tell though, the order of execution (in C) of parameters is not defined. The reason why VS 6.0 (Debug) executed them from right to left was because that is the order of the C calling convention, __cdecl.
Re^4: Pre vs Post Incrementing variables
by ikegami (Patriarch) on Sep 13, 2010 at 15:56 UTC
|
cdecl controls the order in which the arguments are placed on the stack, not the order in which they are evaluated. While it tends to suggest a certain evaluation order, one cannot rely on it.
| [reply] |
|