www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/09/15/08:18:05

Date: Thu, 15 Sep 1994 10:16:14 +0000
To: djgpp AT sun DOT soe DOT clarkson DOT edu
From: alan DOT macdonald AT brunel DOT ac DOT uk (Alan MacDonald)
Subject: Re: named enum?

>What are the advantages of boolean variables in C?  What is wrong with zero
>and non-zero?  I think that there are more disadvantages than advantages.
>It seems that whenever this topic comes up in comp.lang.c, all the C gurus
>discourage the use of such variables.  As a result, when I see TRUE/FALSE

If the gurus say so, it must be wrong ;-)

>code in C, I get nervous about the quality of the code.  For example,
>MS-Windows API is full of TRUE/FALSE stuff and I know that some of it is
>poorly designed.  C is not PASCAL.

If Microsoft does it, it must be wrong ;-)

But, hold . . . surely you're not suggesting 

  abs(1+((bad(x)&bad(y)*contains(x,y)-bad(y)))) > 0


alan DOT macdonald AT brunel DOT ac DOT uk



- Raw text -


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