Article View: comp.std.c
Article #2287Re: comment style
From: Henry Spencer
Date: Sun, 13 Jan 1991 00:28
Date: Sun, 13 Jan 1991 00:28
20 lines
1405 bytes
1405 bytes
In article <1991Jan08.164014.26804@sco.COM> ron@scocan.sco.COM (Ron Irvine) writes: > | ... the characters /* introduce a comment. The contents of > | a comment are examined only to identify multibyte characters > | and to find the characters */ that terminate it. 26 > >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... Sorry, wrong. The standard defines the *language*, not the implementation. What that section says is that the contents of a comment cannot influence whether a program is legal, and cannot change the semantics of the program's execution. Warning messages are outside the scope of the standard entirely. Indeed, if you examine Appendix E, you will find an explicit suggestion that compilers might produce such a warning. -- If the Space Shuttle was the answer, | Henry Spencer at U of Toronto Zoology what was the question? | henry@zoo.toronto.edu utzoo!henry
Technical Details
Message-ID:
<1991Jan13.002806.18376@zoo.toronto.edu>Path:
arc1-ca.pugleaf.net!utzoo!henryReferences:
<1991Jan08.164014.26804@sco.COM>Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c Path: arc1-ca.pugleaf.net!utzoo!henry From: henry@zoo.toronto.edu (Henry Spencer) Subject: Re: comment style Message-ID: <1991Jan13.002806.18376@zoo.toronto.edu> Organization: U of Toronto Zoology References: <1991Jan08.164014.26804@sco.COM> Date: Sun, 13 Jan 1991 00:28:06 GMT