Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uflorida!novavax!twwells!bill From: bill@twwells.com (T. William Wells) Newsgroups: comp.lang.c Subject: Re: ambiguous ? Message-ID: <1989Oct16.090847.3742@twwells.com> Date: 16 Oct 89 09:08:47 GMT References: <20974@gryphon.COM> Organization: None, Ft. Lauderdale, FL Lines: 19 In article <20974@gryphon.COM> bagpiper@pnet02.gryphon.com (Michael Hunter) writes: : In the following code fragment is line 3 ambiguous from an X3J11 standpoint : or from a historical standpoint. : : 1) int Ret ; : 2) : 3) func(Ret = func2(), Ret+30) ; You can't tell which way the arguments will get evaluated. Some compilers will do them left to right, others right to left. And if it does them right to left, which I believe is the most common way, you are in trouble. X3J11 did not mandate any order of evaluation of function arguments so this won't be a good idea with ANSI compilers either. --- Bill { uunet | novavax | ankh | sunvice } !twwells!bill bill@twwells.com