comment style

Steven Preston preston at LL.MIT.EDU
Sat Jan 19 00:37:55 AEST 1991


In article <1991Jan08.164014.26804 at sco.COM> ron at scocan.sco.COM (Ron Irvine) writes:
>[quote of ANSI C Section 3.1.9]
>Thus, a compiler that gives a warning of nested comments upon
>finding the characters /* within a comment must have "examined"
>the contents of the comment beyond that specified by the standard
>and is in violation of the standard.

Section 3.1.9 specifies a semantic constraint.  A translator which
examines the contents of a comment in more detail is not in
"violation" of the standard.

Section 1.6 "Definitions of Terms" starts:
  In this standard, ``shall'' is to be interpreted as a requirement
  on an implementation or on a program; conversely, ``shall not'' is
  be interpreted as a prohibition.

Since 3.1.9 does not contain the words ``shall not'', it does not
constitute a prohibition.  
--
Steve Preston



More information about the Comp.std.c mailing list