Newsgroups: comp.lang.c
Path: utzoo!henry
From: henry@utzoo.uucp (Henry Spencer)
Subject: Re: Nested Comments in C -- A recent experience
Message-ID: <1990Mar12.164051.9400@utzoo.uucp>
Organization: U of Toronto Zoology
References: <236100027@prism> <1414@amethyst.math.arizona.edu> <1523@wacsvax.OZ> <1990Mar11.065712.9798@usenet.ins.cwru.edu> <133@caslon.cs.arizona.edu>
Date: Mon, 12 Mar 90 16:40:51 GMT

In article <133@caslon.cs.arizona.edu> dave@cs.arizona.edu (David P. Schaumann) writes:
>... I think adding nested comments is the wrong
>solution.  Rather, the compiler should always flag the occurance of /*
>within a comment unless explicitly told to shut up about it.  Does anyone know
>what ANSI says about this?

ANSI C (draft of Oct 88) says -- as all C definitions have always said --
that comments do not nest.  Detection of /* within a comment is mentioned
as a "common warning", which is about the strongest thing the standard
can say about it since the standard does not address what diagnostics a
compiler produces.
-- 
MSDOS, abbrev:  Maybe SomeDay |     Henry Spencer at U of Toronto Zoology
an Operating System.          | uunet!attcan!utzoo!henry henry@zoo.toronto.edu
