Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^3: Pre vs Post Incrementing variables

by cdarke (Prior)
on Sep 13, 2010 at 08:18 UTC ( [id://859952]=note: print w/replies, xml ) Need Help??


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.
  • Comment on Re^3: Pre vs Post Incrementing variables

Replies are listed 'Best First'.
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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://859952]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (5)
As of 2024-04-24 18:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found