The current status of D?
Kagamin
spam at here.lot
Tue Dec 6 23:35:33 PST 2011
>> int z = 0;
>> int foo(int x, int y) { return x + y; }
>> int bar(int x) { z++; return x * x + z; }
>> int baz(int x) { z--; return 2 * x + z; }
>> int main() {
>> int w = foo(bar(5), baz(3));
>> return w;
>> }
>> See also:
>> http://en.wikipedia.org/wiki/Sequence_point
> I think ',' in parameter lists are already sequence points.
They aren't, but a function call is a sequence point, so bar is guaranteed to be called before baz.
More information about the Digitalmars-d
mailing list