Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!rpi!brutus.cs.uiuc.edu!psuvax1!psuvm!cmh117 From: CMH117@psuvm.psu.edu (Charles Hannum) Newsgroups: comp.lang.c Subject: Re: Lint question Message-ID: <90072.232413CMH117@psuvm.psu.edu> Date: 14 Mar 90 04:24:13 GMT References: <32699@brunix.UUCP> Organization: Penn State University Lines: 16 In article <32699@brunix.UUCP>, gvr@cs.brown.edu (George V. Reilly) says: > > if (((dx = table[n].x - x), ((dx *= dx) < min)) && ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ The C compiler could calculate these expressions in any way it damned well feels like it. This is not defined in the ANSI C standard, mainly because it would screw up optimizing compilers to have limits on the order of evaluation when not necessary. Virtually, - Charles Martin Hannum II "Klein bottle for sale ... inquire within." (That's Charles to you!) "To life immortal!" cmh117@psuvm.{bitnet,psu.edu} "No noozzzz izzz netzzzsnoozzzzz..." c9h@psuecl.{bitnet,psu.edu} "Mem'ry, all alone in the moonlight ..."