www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/06/06/04:48:54

Xref: news2.mv.net comp.os.msdos.djgpp:4657
From: Erik Max Francis <max AT alcyone DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: bool
Date: Wed, 05 Jun 1996 19:40:04 -0700
Organization: Alcyone Systems
Lines: 29
Message-ID: <31B64504.29681BD9@alcyone.com>
References: <20C58544781 AT fs2 DOT mt DOT umist DOT ac DOT uk>
NNTP-Posting-Host: newton.alcyone.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

A.Appleyard wrote:

> (1) `new ... standard' hereinabove seems to say that the ANSI C++ standard is
> still being altered; please what is the email address of the people in charge
> of it?

Hardly; the change is official.  From _The design and evolution of C++_
(Stroustrup), section 11.7.2:

    Somewhat to my surprise, the ANSI/ISO accepted this argument so `bool' is 
    now a distinct integral type in C++ with literals `true' and  `false'.  
    Non-zero values can be implicitly converted to `true', and `true' can 
    implicitly be converted to 1.  Zero can be implicitly converted to `false', 
    and `false' can be implicitly converted to 0.  This ensures a high degree 
    of compatibility.

My understanding is that DJGPP mimicks this arrangement with

    typedef enum { false, true } bool;

but it is worth noting that this is not in compliance with the current draft
standard.

-- 
Erik Max Francis &tSftDotIotE && http://www.alcyone.com/max && max AT alcyone DOT com
San Jose, California, U.S.A. && 37 20 07 N 121 53 38 W && the 4th R is respect
H.3`S,3,P,3$S,#$Q,C`Q,3,P,3$S,#$Q,3`Q,3,P,C$Q,#(Q.#`-"C`- && 1love && folasade
Omnia quia sunt, lumina sunt. && Dominion, GIGO, GOOGOL, Omega, Psi, Strategem
"Out from his breast/his soul went to seek/the doom of the just." -- _Beowulf_

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019