Xref: news2.mv.net comp.os.msdos.djgpp:2879 Newsgroups: comp.os.msdos.djgpp From: kunst AT natlab DOT research DOT philips DOT com (Pieter Kunst) Subject: Re: Enum Definitions Sender: news AT natlab DOT research DOT philips DOT com (USENET News System) Message-ID: Date: Thu, 18 Apr 1996 07:58:49 GMT References: <199604161312 DOT PAA03770 AT gilberto DOT physik DOT rwth-aachen DOT de> <31753788 DOT 173327AC AT alcyone DOT com> Organization: Philips Research Laboratories, Eindhoven, The Netherlands Lines: 44 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp In article <31753788 DOT 173327AC AT alcyone DOT com> Erik Max Francis writes: >Christoph P. Kukulies wrote: > >> false and true are reserved words in C++. (I'm just stating that without >> knowing it definitely :-) > >No, they're not. Yes, they are :-) =============================================================================== From: Chapter 2: Lexical conventions [lex] =============================================================================== 2.9 Literals [lex.literal] 1 There are several kinds of literals.6) literal: integer-literal character-literal floating-literal string-literal boolean-literal _________________________ 6) The term "literal" generally designates, in this International Standard, those tokens that are called "constants" in ISO C. 2.9.5 Boolean literals [lex.bool] boolean-literal: false true 1 The Boolean literals are the keywords false and true. Such literals have type bool and the given values. They are not lvalues. =============================================================================== See: http://www.cygnus.com/~mrs/wp-draft/index.html http://www.dcs.hull.ac.uk/~cw/C++.wp-draft/index.html http://www.ph.tn.tudelft.nl/People/klamer/wp/index.html Pieter.