Path: utzoo!attcan!uunet!vsi!friedl
From: friedl@vsi.COM (Stephen J. Friedl)
Newsgroups: comp.std.c
Subject: Re: Comments and pragma lines
Summary: Comments go out before preprocessor directives are recognized
Message-ID: <959@vsi.COM>
Date: 30 Nov 88 01:53:56 GMT
References: <48957@pyramid.pyramid.com>
Distribution: na
Organization: V-Systems, Inc. -- Santa Ana, CA
Lines: 20

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

Comments are removed before any preprocessing directives are recognized, so 

	#pragma foo		/* comment
				   goes
				   here */

removes the entire comment before the #pragma is seen.  This comes from
section 2.1.1.2, `Translation Phases' (page 6 of the May88 dpANS).

     Steve

--- 
Stephen J. Friedl        3B2-kind-of-guy            friedl@vsi.com
V-Systems, Inc.                                 attmail!vsi!friedl
Santa Ana, CA  USA       +1 714 545 6442    {backbones}!vsi!friedl
---------Nancy Reagan on cutting the grass: "Just say mow"--------