🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Incrementing a bool

#1503
From: Anselm Lingnau
Date: Wed, 09 Aug 1995 07:50
26 lines
1949 bytes
In article <9521600.9005@mulga.cs.mu.OZ.AU>,
Fergus Henderson <fjh@munta.cs.mu.OZ.AU> wrote:

> But that's the whole point: every man and his dog uses a different
> type to store boolean values.  This causes a real software engineering
> problem, especially when you are using several different libraries,
> all of which define `bool' (incompatibly).  It makes sense to standardize
> on just *one* boolean type.

There is a big difference between standardizing on one boolean type and
adding it to the language as a built-in. Unfortunately, providing a
boolean type at the library level does not help with the problem that
some people would like conditional operators to return boolean instead
of 0/1. This cannot be patched into the language without breaking lots
of old code.

I maintain, as far as C is concerned, that adding a built-in boolean
type will gratuitiously complicate the language to little gain and
should therefore be avoided. For C++, things may be different, but then
I don't use C++. There is no need to turn C into C++ by stealth.

Anselm
-- 
Anselm Lingnau ......................... lingnau@tm.informatik.uni-frankfurt.de
Fine words and an insinuating appearance are seldom associated with true
virtue.                                               --- Confucius, *Analects*
Technical Details
Message-ID: <409pcb$sfc@deneb.tm.informatik.uni-frankfurt.de>
Path: arc1-ca.pugleaf.net!zeus.rbi.informatik.uni-frankfurt.de!not-for-mail
References: <1995Jul22.022031.10937@sq.sq.com> <3uuprl$frm@newsbf02.news.aol.com> <1995Jul26.030356.21528@sq.sq.com> <9521600.9005@mulga.cs.mu.OZ.AU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!zeus.rbi.informatik.uni-frankfurt.de!not-for-mail
From: Anselm Lingnau <lingnau@tm.informatik.uni-frankfurt.de>
Newsgroups: comp.std.c++,comp.std.c
Subject: Re: Incrementing a bool
Date: 9 Aug 1995 09:50:35 +0200
Organization: Dept. of Computer Science, University of Frankfurt, Germany
Sender: lingnau@deneb.tm.informatik.uni-frankfurt.de
Message-ID: <409pcb$sfc@deneb.tm.informatik.uni-frankfurt.de>
References: <1995Jul22.022031.10937@sq.sq.com> <3uuprl$frm@newsbf02.news.aol.com> <1995Jul26.030356.21528@sq.sq.com> <9521600.9005@mulga.cs.mu.OZ.AU>
NNTP-Posting-Host: deneb.tm.informatik.uni-frankfurt.de