cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/02/10:55:24

From: eyal DOT ben-david AT aks DOT com
To: mdaya AT cs DOT uct DOT ac DOT za
cc: djgpp AT delorie DOT com
Message-ID: <42256506.00564D66.00@aks.com>
Date: Tue, 2 Sep 1997 17:50:22 +0200
Subject: Re: bool.h in C++
Mime-Version: 1.0




On 9/2/97 2:08:25 PM mdaya wrote:

>In <340624E0 DOT 7043 AT indy DOT net> Chris Frolik <frolikcc AT indy DOT net> writes:
>
>>What is with this "bool.h" in the DJGPP C++ include directory?  Just
>>wondering, as it really isn't needed to declare boolean types, since
>>they can be declared without the header.
>
>I'm may be wrong about this but:
>
>without the bool.h header file you can declare boolean types but the TRUE
and
>FALSE values are not defined.
>
Hello

This header was included in the original HP STL  implementation to emulate
the new
C++ keywords  'bool'   'true'  'false', for compilers that did not support
it.

Today it is redundant since most new compilers support these keywords
(including DJGPP)
DJGPP (g++ in general) will accept these keywords without including bool.h

bool.h itself didn't do much. just #defined bool, true, false  as int, 1, 0
respectively.

Eyal.


- Raw text -


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