🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: bool (was Re: stop adding keywords to C++)

#2871
From: Shankar Unni
Date: Tue, 05 Dec 1995 18:29
22 lines
1643 bytes
Matt Austern (matt@cyclops5.berkeley.edu) wrote:

> The argument for bool is a very pragmatic one: users and library
> vendors were defining boolean types themselves, and they were all
> doing it slightly differently.

And worse, by doing this, you'd end up with collisions when you included
files from different packages together, so each library vendor would have
to cook up elaborate schemes to protect the various bool definitions from
each other (XtBool, SoBool, VkBool, etc. etc.)

This is the strongest argument for putting a universally used type into
the language itself..
--
Shankar Unni				E-Mail:	shankar@sgi.com
Silicon Graphics Inc.			Phone:	+1-415-933-2072
URL:	http://reality.sgi.com/employees/shankar


[ 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: <4a20bo$4pa@fido.asd.sgi.com>
Path: arc1-ca.pugleaf.net!engnews1.Eng.Sun.COM!taumet!clamage
References: <Pine.SOL.3.91.951203010216.13007A-100000@barney> <MATT.95Dec4150907@cyclops5.berkeley.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!engnews1.Eng.Sun.COM!taumet!clamage
From: shankar@engr.sgi.com (Shankar Unni)
Newsgroups: comp.std.c++
Subject: Re: bool (was Re: stop adding keywords to C++)
Date: 5 Dec 1995 18:29:50 GMT
Organization: Silicon Graphics, Inc., Mountain View, CA
Approved: clamage@eng.sun.com (comp.std.c++)
Message-ID: <4a20bo$4pa@fido.asd.sgi.com>
References: <Pine.SOL.3.91.951203010216.13007A-100000@barney> <MATT.95Dec4150907@cyclops5.berkeley.edu>
Reply-To: shankar@engr.sgi.com
NNTP-Posting-Host: taumet.eng.sun.com
Content-Type: text
X-Nntp-Posting-Host: boris.engr.sgi.com
X-Newsreader: TIN [version 1.2 PL2]
Content-Length: 719
X-Lines: 18
Originator: clamage@taumet