From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_20,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11390f,4c42ac518eba0bbe X-Google-Attributes: gid11390f,public X-Google-Thread: 109fba,4c42ac518eba0bbe X-Google-Attributes: gid109fba,public X-Google-Thread: 1014db,4c42ac518eba0bbe X-Google-Attributes: gid1014db,public X-Google-Thread: 103376,4c42ac518eba0bbe X-Google-Attributes: gid103376,public From: "Andy Knight" Subject: Re: Programming language vote - results Date: 1997/11/20 Message-ID: <880035133.9921.0.nnrp-03.c2d9cf02@news.demon.co.uk>#1/1 X-Deja-AN: 291006767 X-NNTP-Posting-Host: mailgate.tetraworld.com [194.217.207.2] References: <343fbb5a.0@news.iprolink.ch> <34466EB4.3381@dynamite.com.au> <6275dt$agm$3@news.on> <344BCED0.2D51@dynamite.com.au> <62tpap$7gh$1@darla.visi.com> <3470EF6E.F74@lysator.liu.se> <64qsf0$ccc@dfw-ixnews11.ix.netcom.com> <347440AD.35DF@idt.net> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2103.0 Newsgroups: comp.lang.ada,comp.lang.apl,comp.lang.c,comp.lang.c++ Date: 1997-11-20T00:00:00+00:00 List-Id: Terry Richards wrote in message <347440AD.35DF@idt.net>... [ snip ] >All of these constructs are flat out wrong. As far as I can remember, >neither C or C++ guarantees that the clauses in a condition will be >evaluated in the order you wrote them. IOW, > >if (call_this() || call_that()); > >could compile as if it where written: > >if (call_that() || call_this()); > >which could have different results. > No it won't. The left-to-right evaluation is well defined. [ snip ]