Related articles |
---|
Semicolons (Re: Low-Rent Syntax) bart@videovax.tv.tek.com (Bart Massey) (1990-08-13) |
Re: Semicolons (Re: Low-Rent Syntax) codex!peterd@uunet.UU.NET (1990-08-20) |
Semicolons (Re: Low-Rent Syntax) thomasm@llama.ingres.com (1990-08-22) |
Re: Semicolons (Re: Low-Rent Syntax) trt@rti.rti.org (1990-08-24) |
Re: Semicolons (Re: Low-Rent Syntax) mjr@decuac.DEC.COM (1990-08-25) |
Re: Semicolons (Re: Low-Rent Syntax) bart@videovax.tv.tek.com (Bart Massey) (1990-08-26) |
Re: Semicolons (Re: Low-Rent Syntax) elsie!ado@uunet.UU.NET (1990-08-27) |
Re: Semicolons (Re: Low-Rent Syntax) anw@maths.nott.ac.uk (1990-08-29) |
Re: Semicolons (Re: Low-Rent Syntax) liam@cs.qmw.ac.uk (1990-09-03) |
Re: Semicolons (Re: Low-Rent Syntax) firth@sei.cmu.edu (1990-09-05) |
Re: Semicolons (Re: Low-Rent Syntax) lins@apple.com (Chuck Lins) (1990-09-05) |
Re: Semicolons (Re: Low-Rent Syntax) rob@baloo.eng.ohio-state.edu (1990-09-05) |
Re: Semicolons (Re: Low-Rent Syntax) MERRIMAN@ccavax.camb.com (George Merriman -- CCA/NY) (1990-09-05) |
[3 later articles] |
Newsgroups: | comp.compilers |
From: | elsie!ado@uunet.UU.NET (Arthur David Olson) |
Keywords: | C, design, debug |
Organization: | NIH-LEC, Bethesda, MD |
References: | <9008202341.AA06543@llama.ingres.com> <4032@rtifs1.UUCP> |
Date: | 27 Aug 90 18:04:38 GMT |
> 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]
--
Return to the
comp.compilers page.
Search the
comp.compilers archives again.