🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #5243

Re: sizeof in #if?

#5243
From: John F. Haugh II
Date: Thu, 28 Jul 1988 05:32
25 lines
1660 bytes
In article <12685@mimsy.UUCP> chris@mimsy.UUCP (Chris Torek) writes:
|>In article <12674@mimsy.UUCP> Chris wrote [a comment about sizeof being a
| keyword, and that footnote 74 points out that keywords do not yet exist].

[ and chris then further agrees that sizeof is not a keyword, but an
  operator instead ]

|
|>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.)

sizeof has nothing to operate on.  there is no means of specifying the 
datatype or variable whose size is to be determined.

- john.
-- 
John F. Haugh II                 +--------- Cute Chocolate Quote ---------
HASA, "S" Division               | "USENET should not be confused with
UUCP:   killer!rpp386!jfh        |  something that matters, like CHOCOLATE"
DOMAIN: jfh@rpp386.uucp          |             -- with my apologizes
Technical Details
Message-ID: <4543@rpp386.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!rutgers!mailrus!ames!killer!vector!rpp386!jfh
References: <705@bnr-rsc.UUCP> <11556@steinmetz.ge.com> <11637@steinmetz.ge.com> <11654@steinmetz.ge.com> <12685@mimsy.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!rutgers!mailrus!ames!killer!vector!rpp386!jfh
From: jfh@rpp386.UUCP (John F. Haugh II)
Newsgroups: comp.std.c
Subject: Re: sizeof in #if?
Message-ID: <4543@rpp386.UUCP>
Date: 28 Jul 88 05:32:34 GMT
References: <705@bnr-rsc.UUCP> <11556@steinmetz.ge.com> <11637@steinmetz.ge.com> <11654@steinmetz.ge.com> <12685@mimsy.UUCP>
Reply-To: jfh@rpp386.UUCP (The Beach Bum)
Organization: Big "D" Home for Wayward Hackers
Lines: 25