Re: Method call args order
Re: Method call args order
- Subject: Re: Method call args order
- From: Paul Walmsley <email@hidden>
- Date: Mon, 25 Sep 2006 16:12:58 +0100
I have problems with this function call:
int i=0;
printf("Format %i, %i\n", i++, i++);
The order of evaluation of function arguments is undefined in C++, so
there is no guarantee which of the i++ gets evaluated first. See Item
31 in Sutter & Alexandrescu's 'C++ coding standards'. This is exactly
the example they give that is not guaranteed to work.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden