delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/09/17/13:29:09

From: Carl Hover <buzz AT off DOT spambots>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: enum - Why does true == false?
Message-ID: <zmziN6Y=36AP0ENNwhn5l0Gjo=Rb@4ax.com>
References: <HbrhNzeq9qsy9UvyzT4fDeX4Lrnh AT 4ax DOT com> <37E1C429 DOT FA787217 AT a DOT crl DOT com>
X-Newsreader: Forte Agent 1.6/32.525
X-No-Archive: yes
MIME-Version: 1.0
Lines: 11
NNTP-Posting-Date: Fri, 17 Sep 1999 11:50:28 CDT
Organization: Giganews.Com - Premium News Outsourcing
X-Trace: sv1-RFjET2Zrbsl8Dg8Wyc1mjHMSoxTfoXgUnPSRKvZ0EgzYclqKLhWKi+UgvSsqxCMbeb/tIpPdbSzSrf9!oEaPVw==
X-Complaints-To: abuse AT GigaNews DOT Com
X-Abuse-Info: Please be sure to forward a copy of ALL headers
X-Abuse-Info: Otherwise we will be unable to process your complaint properly
Date: Fri, 17 Sep 1999 09:50:30 -0700
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

On Thu, 16 Sep 1999 23:31:37 -0500, Weiqi Gao <weiqigao AT a DOT crl DOT com>
wrote:

>See K&R p.232, l.-11.

Ah, there it is ... missed that paragraph. An #if expression can't
contain enum constant. I guess I've been making that mistake for many
years. The Borland pre-processor says the enum is undefined, but still
allows it to be used in #if expressions.  :-/

Thanks for answering my non-dgjpp question.

- Raw text -


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