🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sgi.apps
Article #83

Re: SGI's C++ compiler and the boolean type

#83
From: Andrew Koenig
Date: Wed, 10 Apr 1996 13:08
11 lines
661 bytes
In article <4kg6fv$h7k@nic.ftns.no> art@mother.idg.no writes:

> And some argue that true should be -1, because then bitwise not works:

> ~(true = -1) == (false = 0)
> ~(false = 0) == (true = -1)

... and  (3<4)==true   fails.
-- 
				--Andrew Koenig
				  ark@research.att.com
Technical Details
Message-ID: <DpnDuH.6GJ@research.att.com>
Path: arc1-ca.pugleaf.net!in1.uu.net!allegra!alice!ark
References: <4kefm7$oao@ncar.ucar.edu> <4kg6fv$h7k@nic.ftns.no>

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.sgi.apps,comp.lang.c++
Path: arc1-ca.pugleaf.net!in1.uu.net!allegra!alice!ark
From: ark@research.att.com (Andrew Koenig)
Subject: Re: SGI's C++ compiler and the boolean type
Message-ID: <DpnDuH.6GJ@research.att.com>
Organization: AT&T Research, Murray Hill NJ
References: <4kefm7$oao@ncar.ucar.edu> <4kg6fv$h7k@nic.ftns.no>
Date: Wed, 10 Apr 1996 13:08:41 GMT