Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!decwrl!apple!snorkelwacker!husc6!spdcc!esegue!compilers-sender From: elsie!ado@uunet.UU.NET (Arthur David Olson) Newsgroups: comp.compilers Subject: Re: Semicolons (Re: Low-Rent Syntax) Keywords: C, design, debug Message-ID: <90234@elsie.UUCP> Date: 27 Aug 90 18:04:38 GMT References: <9008202341.AA06543@llama.ingres.com> <4032@rtifs1.UUCP> Sender: compilers-sender@esegue.segue.boston.ma.us Reply-To: elsie!ado@uunet.UU.NET (Arthur David Olson) Organization: NIH-LEC, Bethesda, MD Lines: 22 Approved: compilers@esegue.segue.boston.ma.us > I was quite surprised to learn. . .of a C compiler that actually [will] > catch errors such as: > > while ( x ) > y--; > endwhile; > > [Which compiler is it? And when I really do want to write a degenerate > while loop, how do I tell it not to complain? -John] A compiler used here complains about if ( expr ) ; but not about if ( expr ) {} since the second is much less likely to be a typo than the first. -- Arthur David Olson ado@elsie.nci.nih.gov ADO and Elsie are Ampex and Borden trademarks [Once again, which compiler is it? Inquiring minds want to know. -John] -- Send compilers articles to compilers@esegue.segue.boston.ma.us {ima | spdcc | world}!esegue. Meta-mail to compilers-request@esegue.