🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.lang.c++
Article #363

Re: C++ and sizeof

#363
From: tk
Date: Sun, 19 Oct 1986 23:56
10 lines
1035 bytes
In article <3522@columbia.UUCP> eppstein@garfield.columbia.edu (David Eppstein) writes:
>Is there a good reason why CC expands sizeof itself?  E.g. in
> ...
>why does the  sizeof(y)  become  8  and not  sizeof(struct x)?
>Is there some other use CC makes of the size that makes up for the
>resulting lack of portability?

What lack of portability? If you're counting on the C++ translator to produce
"portable C" as its output I think you'll have problems since cfront uses
machine dependent size and alignment information.
Technical Details
Message-ID: <1772@clyde.ATT.COM>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!tk
References: <3522@columbia.UUCP>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!tk
From: tk@moss.ATT.COM
Newsgroups: net.lang.c++
Subject: Re: C++ and sizeof
Message-ID: <1772@clyde.ATT.COM>
Date: Sun, 19-Oct-86 19:56:49 EDT
Article-I.D.: clyde.1772
Posted: Sun Oct 19 19:56:49 1986
Date-Received: Tue, 21-Oct-86 06:36:24 EDT
References: <3522@columbia.UUCP>
Sender: nuucp@clyde.ATT.COM
Reply-To: tk@moss.UUCP (Thomas Kirk)
Organization: AT&T Bell Laboratories, Whippany NJ
Lines: 10