Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!mips!apple!well!farren From: farren@well.sf.ca.us (Mike Farren) Newsgroups: comp.sys.amiga.programmer Subject: Re: Compiler code (was a flame fest) (now a lesser flame fest) Message-ID: <24503@well.sf.ca.us> Date: 30 Apr 91 06:27:32 GMT References: Lines: 19 jsmoller@jsmami.UUCP (Jesper Steen Moller) writes: > result=func1()+func2(); >Question: Can't you rely on func1() being called before func2()??? >Really not? Nope. Really not. There is no guarantee at all that the compiler will call func1 first - the only guarantee is that both functions will have been called before the add takes place :-) >Oh, by the way: func(a++) >Is "a" increased before or after the function call. I think I once read in >K&R that it was undefined, but I might be mistaken. Nope, not undefined. a is evaluated, and passed to the function when it is called, and then is incremented. This *is* guaranteed. -- Mike Farren farren@well.sf.ca.us