Article View: comp.std.c++
Article #1546Re: What!!! true and false not identifiers?
From: Dietmar Kuehl
Date: Wed, 02 Aug 1995 17:59
Date: Wed, 02 Aug 1995 17:59
22 lines
1415 bytes
1415 bytes
Hi, Leshek Fiedorowicz (leshek@lexmark.com) wrote: : In <fwv3ffkzm98.fsf@oculus.aifh.ed.ac.uk>, andrewfg@oculus.aifh.ed.ac.uk (Andrew Fitzgibbon) writes: : > : >I don't believe it! true and false are keywords.. : : or maybe just declared as <const> in some header file. In general it is highly : recommended to use <const> variables in place of <#defines> in C++. According to the C++ Draft WP, 'bool' is a C++ built-in type with the two values 'true' and 'false'. Beginning with gcc-2.6.? the type bool is supported by gcc. You should be aware that there are more keywords in C++ than in C. It is correct that some will of the introduced keywords break existing code. Especially, the keywords introduced into C++ after the ARM was released. dk -- http://www.informatik.uni-konstanz.de/~kuehl dietmar.kuehl@uni-konstanz.de I am a realistic optimist - that's why I appear to be slightly pessimistic
Technical Details
Message-ID:
<3voed8$dlu@eurybia.rz.uni-konstanz.de>Path:
arc1-ca.pugleaf.net!news.uni-konstanz.de!uzwil!kuehlReferences:
<DCorpE.42I@lexmark.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!news.uni-konstanz.de!uzwil!kuehl From: kuehl@uzwil (Dietmar Kuehl) Newsgroups: comp.std.c++ Subject: Re: What!!! true and false not identifiers? Date: 2 Aug 1995 17:59:04 GMT Organization: Fakultät für Mathematik und Informatik Distribution: world Message-ID: <3voed8$dlu@eurybia.rz.uni-konstanz.de> References: <DCorpE.42I@lexmark.com> Reply-To: dietmar.kuehl@uni-konstanz.de NNTP-Posting-Host: uzwil.informatik.uni-konstanz.de X-Newsreader: TIN [version 1.1 PL6]