Xref: utzoo comp.lang.c:30895 alt.folklore.computers:4586 Path: utzoo!attcan!uunet!mcsun!tuvie!vmars!hp From: hp@vmars.tuwien.ac.at (Peter Holzer) Newsgroups: comp.lang.c,alt.folklore.computers Subject: Re: Stupid users Message-ID: <1748@tuvie> Date: 8 Aug 90 11:34:36 GMT References: <2674@aipna.ed.ac.uk> <14452@lambda.UUCP>, <7219@star.cs.vu.nl> <90218.175404KPURCELL@LIVERPOOL.AC.UK> Sender: news@tuvie Followup-To: comp.lang.c Lines: 21 KPURCELL@LIVERPOOL.AC.UK writes: >Of course you could write: > foo = ++a+++++b++; >and confuse a lot of people (and compilers!) ^^^^^^^^^^^^^^ They surely are confused by this piece of non-C code: The above code is equivalent to: foo = ((++a)++)++ + b++; (++ a) is not an l-value; so (++ a)++ is not valid C. Any compiler accepting this code is broken. Regards, Peter -- | _ | Peter J. Holzer | Think of it | | |_|_) | Technische Universitaet Wien | as evolution | | | | | hp@vmars.tuwien.ac.at | in action! | | __/ | ...!uunet!mcsun!tuvie!vmars!hp | Tony Rand |