Mail Archives: djgpp/1996/06/06/04:48:54
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 -