🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c++
Article #2904

Re: Stuff C++ needs

#2904
From: brian (b.c.) white
Date: Thu, 07 Dec 1995 17:55
21 lines
1508 bytes
In article <49vqon$mvs@engnews2.eng.sun.com>,
Steve Clamage <clamage@Eng> wrote:
>Yes, of course. This was true in C as well. The requirements are that
>	sizeof(char) <= sizeof(short) <= sizeof(int) <= sizeof(long)
>They are allowed to be all the same size, for example, and you can look
>in K&R1 to find examples. This situation -- no predetermined size for
>any built-in type -- has been true since the beginning of C, and is
>still true in C++.

I thought I read somewhere that C++ guarantees a "char" to be 8 bits (or
was that "one byte"?).

                                        Brian
                                 ( bcwhite@bnr.ca )

-------------------------------------------------------------------------------
    In theory, theory and practice are the same.  In practice, they're not.

[ comp.std.c++ is moderated.  Submission address: std-c++@ncar.ucar.edu.
  Contact address: std-c++-request@ncar.ucar.edu.  The moderation policy
  is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
Technical Details
Message-ID: <4a792a$ghm@bcarh8ab.bnr.ca>
Path: arc1-ca.pugleaf.net!engnews1.Eng.Sun.COM!taumet!clamage

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!engnews1.Eng.Sun.COM!taumet!clamage
From: "brian (b.c.) white" <bcwhite@bnr.ca>
Newsgroups: comp.std.c++
Subject: Re: Stuff C++ needs
Date: 7 Dec 1995 17:55:15 GMT
Organization: Bell-Northern Research Ltd.
Approved: clamage@eng.sun.com (comp.std.c++)
Message-ID: <4a792a$ghm@bcarh8ab.bnr.ca>
NNTP-Posting-Host: taumet.eng.sun.com
Content-Type: text
X-Nntp-Posting-Host: bcarsd26.bnr.ca 
Content-Length: 801
X-Lines: 17
Originator: clamage@taumet