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