Yet Another Argument for Nested Comments

David Conrad dave at tygra.UUCP
Fri Feb 1 20:12:25 AEST 1991


Well, Turbo C++ 1.00 behaved on the program:
 
/* unterminated comment
 
void main(void)
{
  puts("Hello, world!");
}
 
/* I wonder, will it compile? */
 
as follows:
In the normal mode it produced an `empty' object file and produced no
warnings or errors.  With nested comments turned on (tcc -C test) it
complained `Error test.c 3: Unexpected end of file in comment started
on line 1' and stopped the compile.
--
David Conrad
tygra!dave at uunet.uu.net
tygra!dave at sharkey.cc.umich.edu
-- 
=  CAT-TALK Conferencing Network, Computer Conferencing and File Archive  =
-  1-313-343-0800, 300/1200/2400/9600 baud, 8/N/1. New users use 'new'    - 
=  as a login id.  AVAILABLE VIA PC-PURSUIT!!! (City code "MIDET")        =
   E-MAIL Address: dave at DDMI.COM



More information about the Comp.lang.c mailing list