From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 102b75,45b50f14dadfce5b X-Google-Attributes: gid102b75,public X-Google-Thread: 1164f8,45b50f14dadfce5b X-Google-Attributes: gid1164f8,public X-Google-Thread: 110292,45b50f14dadfce5b X-Google-Attributes: gid110292,public From: jbuck@synopsys.com (Joe Buck) Subject: Re: Final kick at the "Merced Guessing Game" Date: 1997/10/15 Message-ID: <622q65$rra@hermes.synopsys.com>#1/1 X-Deja-AN: 280743845 References: <61g30t$o2n@news-rocq.inria.fr> <3443FAEF.EE62B663@powertelglobal.com> <621dsv$h7p$1@goanna.cs.rmit.edu.au> <3444608B.421F2325@ix.netcom.crud.com> Organization: Synopsys Inc., Mountain View, CA 94043-4033 Newsgroups: comp.sys.intel,comp.arch,comp.sys.dec Richard A. O'Keefe wrote: >> Another point is that Fortran >> applies exactly the same rule to *all* operators: if the compiler >> can determine that the *result* of some subcomputation is irrelevant >> to the value of the whole, it can delete that subcomputation entirely. "Paul D. DeRocco" writes: >This is certainly true of C++, whose current draft standard >states that the observable effects of running the program must >be the same as if the program were executed as described in the >standard. It's commonly called the "as if" rule. Actually the draft standard goes farther than this, as it permits the C++ compiler to eliminate copy constructor calls even if the copy constructors have visible side effects (e.g. the compiler can assume that a copy constructor just does a copy, and it can eliminate it if it doesn't have to copy). -- -- Joe Buck http://www.synopsys.com/pubs/research/people/jbuck.html If you thought flashing ads on Web sites were annoying, wait till the Web and your operating system are "seamlessly integrated" and watch the pulsating promotional crud spill out over your desktop. -- Scott Rosenburg