Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!rpi!uupsi!ficc!peter From: peter@ficc.ferranti.com (Peter da Silva) Newsgroups: comp.std.c Subject: Re: ++i++ in Plain English Message-ID: Date: 22 Apr 91 17:42:37 GMT References: <5ywa15w164w@cellar.UUCP> <3845@inews.intel.com> <3924@inews.intel.com> Reply-To: peter@ficc.ferranti.com (Peter da Silva) Organization: Xenix Support, FICC Lines: 19 In article <3924@inews.intel.com> bhoughto@pima.intel.com (Blair P. Houghton) writes: > In article peter@ficc.ferranti.com (Peter da Silva) writes: > >In article <3845@inews.intel.com> bhoughto@hopi.intel.com (Blair P. Houghton) writes: > >> Yes, you're right, most of it is moot, but remember that > >> the entire operation is permitted to be "discarded" if > > ... and if i isn't volatile ... > If the compiler's smart > enough to understand that the "side effect is not needed" > and the value is not used, then the evaluation can be elided. I'd hate to have to write a device driver with that compiler, mate. A compiler that sharp can cut you. -- Peter da Silva. `-_-' peter@ferranti.com +1 713 274 5180. 'U` "Have you hugged your wolf today?" So you're volatile too?