Comments and pragma lines

Henry Spencer henry at utzoo.uucp
Wed Nov 30 03:17:40 AEST 1988


In article <48957 at pyramid.pyramid.com> markhall at pyramid.UUCP (Mark Hall) writes:
>Is it legal to start the comment on the pragma line?  From what I read*
>in the standard, it is illegal...

Sorry, wrong, see 2.1.1.2, which clearly specifies that comments disappear
long before #pragma and its kin are recognized.  Comments are legal anywhere.
It's even legal to write "/* foo */ # /* bar */ pragma ...".
-- 
SunOSish, adj:  requiring      |     Henry Spencer at U of Toronto Zoology
32-bit bug numbers.            | uunet!attcan!utzoo!henry henry at zoo.toronto.edu



More information about the Comp.std.c mailing list