Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!uflorida!haven!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn) Newsgroups: comp.lang.c Subject: Re: When is a statement an expression? Message-ID: <10148@smoke.BRL.MIL> Date: 27 Apr 89 12:38:57 GMT References: <1043@itivax.iti.org> Reply-To: gwyn@brl.arpa (Doug Gwyn) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 11 In article <1043@itivax.iti.org> scs@vax3.iti.org (Steve Simmons) writes: > a = if ( a == 1 ) 12 ; else 14 ; >Anybody else ever use stuff like this? How could they, since it was never valid C? Why do you think there had to be a ?: operator if the above was supposed to work? If you had a compiler that accepted the above code and produced the answer you expected, it was due to some fortuitous combination of factors specific to that particular compiler, including lack of diagnostic ability.