🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #5235

Re: sizeof in #if?

#5235
From: Chris Torek
Date: Wed, 27 Jul 1988 02:59
24 lines
1613 bytes
>In article <12674@mimsy.UUCP> I wrote [a comment about sizeof being a
 keyword, and that footnote 74 points out that keywords do not yet exist].

In article <11654@steinmetz.ge.com> davidsen@steinmetz.ge.com
(William E. Davidsen Jr) writes:
>  I guess some wording better be put back in fn74, since everywhere I
>could find in the standard (including the index) sizeof is refered to as
>an *operator* rather than a keyword or statement.

It is indeed an operator.  `operator' and `keyword' are not mutually
exclusive (although, as it happens, this is the only C keyword that is
also an operator).  (In Pascal, e.g., the keywords `div' and `mod' are
operators.)

>As such I would expect that it would function as well in #if as do +,
>-, etc. Perhaps this should be clarified again, as it was in the 2nd draft.

I agree with the latter sentiment, although I see this as a relatively
minor issue.  (There are things that the draft seems to say that I find
even less obvious than this---e.g., Arthur Olson's observations on reserved
names.)
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163)
Domain:	chris@mimsy.umd.edu	Path:	uunet!mimsy!chris
Technical Details
Message-ID: <12685@mimsy.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!lll-tis!ames!ncar!oddjob!mimsy!chris
References: <705@bnr-rsc.UUCP> <11556@steinmetz.ge.com> <11637@steinmetz.ge.com> <11654@steinmetz.ge.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!lll-tis!ames!ncar!oddjob!mimsy!chris
From: chris@mimsy.UUCP (Chris Torek)
Newsgroups: comp.std.c
Subject: Re: sizeof in #if?
Message-ID: <12685@mimsy.UUCP>
Date: 27 Jul 88 02:59:49 GMT
References: <705@bnr-rsc.UUCP> <11556@steinmetz.ge.com> <11637@steinmetz.ge.com> <11654@steinmetz.ge.com>
Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742
Lines: 23