Nested Comments (long summary)

Arthur David Olson ado at elsie.UUCP
Sat Feb 24 12:06:32 AEST 1990


> > To draw the bottom line I would propose: A compiler may well warn
> > about the sequence slash-asterix *within* a comment...
> 
> The Holy Scriptures (Oct 88 draft) in fact mention this as a common warning.

The mention occurs in the Apocrypha. . .er, in an Appendix.  The Standard
itself says "The contents of a comment are examined *only* to identify
multibyte characters and to find the characters */ that terminate it"
(emphasis added).  Since Standard-conforming compilers can only look for
the terminating */, they cannot hunt for /*'s, at least by my reading.
-- 
	Arthur David Olson   ado at alw.nih.gov   ADO is a trademark of Ampex.



More information about the Comp.lang.c mailing list