Topic: The age of the bool type


Author: Nicola Musatti <objectway@divalsim.it>
Date: Fri, 30 Nov 2001 19:28:07 GMT
Raw View
Hallo.
In an ongoing discussion in the italian C++ newsgroup someone wrote
about being taught at school that C++ doesn't have a boolean type. Now
I'm wondering: when was "bool" introduced in the language?

Cheers,
Nicola Musatti

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.research.att.com/~austern/csc/faq.html                ]





Author: Francis Glassborow <francis.glassborow@ntlworld.com>
Date: Sat, 1 Dec 2001 00:30:10 GMT
Raw View
In article <3C076BE7.4B6E311B@divalsim.it>, Nicola Musatti
<objectway@divalsim.it> writes
>In an ongoing discussion in the italian C++ newsgroup someone wrote
>about being taught at school that C++ doesn't have a boolean type. Now
>I'm wondering: when was "bool" introduced in the language?

I cannot say exactly but it was prior to the publication of D&E and the
copyright date in my copy is 1994. I guess some time in 1993 would not
be far wrong.


--
Francis Glassborow
I offer my sympathy and prayers to all those who are suffering
as a result of the events of September 11 2001.

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.research.att.com/~austern/csc/faq.html                ]





Author: comeau@panix.com (Greg Comeau)
Date: Sat, 1 Dec 2001 22:24:46 GMT
Raw View
In article <3C076BE7.4B6E311B@divalsim.it>,
Nicola Musatti  <Nicola.Musatti@ObjectWay.it> wrote:
>In an ongoing discussion in the italian C++ newsgroup someone wrote
>about being taught at school that C++ doesn't have a boolean type. Now
>I'm wondering: when was "bool" introduced in the language?

bool didn't exist in ARM C++, and was incorporated into
the C++ draft by the C++ committee.  So formally, it didn't exist
until 1997.  But informally, I believe it got in the draft
around late 1993/early 1994.

Anyway, since it is in Standard C++, certainly the instructor is,
well, "out of it".
--
Greg Comeau         export ETA: December
Comeau C/C++ ONLINE ==>     http://www.comeaucomputing.com/tryitout
World Class Compilers:  Breathtaking C++, Amazing C99, Fabulous C90.
Comeau C/C++ with Dinkumware's Libraries... Have you tried it?

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.research.att.com/~austern/csc/faq.html                ]





Author: Steve Clamage <clamage@eng.sun.com>
Date: Sat, 1 Dec 2001 22:24:35 GMT
Raw View
On Fri, 30 Nov 2001, Nicola Musatti wrote:

> Hallo.
> In an ongoing discussion in the italian C++ newsgroup someone wrote
> about being taught at school that C++ doesn't have a boolean type. Now
> I'm wondering: when was "bool" introduced in the language?

No boolean type existed in the ARM, nor in any compilers from that
time. Type bool was introduced by the C++ Standard. If I remember
correctly, discussion of type bool began in the C++ Committee
in 1992, and first appeared in a draft in 1992 or 1993. I can't
check those dates easily, because I don't have online copies
of documents that old.

Maybe someone else can suggest when compilers supporting type
bool first appeared.

--
Steve Clamage, stephen.clamage@sun.com

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.research.att.com/~austern/csc/faq.html                ]





Author: Andrew Koenig <ark@research.att.com>
Date: Mon, 3 Dec 2001 17:51:31 GMT
Raw View
Francis> I cannot say exactly but it was prior to the publication of D&E and
Francis> the copyright date in my copy is 1994. I guess some time in 1993 would
Francis> not be far wrong.

The first working paper in which it appears was the one for the March 1994 meeting.

--
Andrew Koenig, ark@research.att.com, http://www.research.att.com/info/ark

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.research.att.com/~austern/csc/faq.html                ]