What should be added to C (booleans)

rlb at zaiaz32.UUCP rlb at zaiaz32.UUCP
Tue Jun 3 00:06:11 AEST 1986


> 
> provided that the two expressions evaluate to whatever a boolean int is
> locally (1 or -1).  {BTW I usually use set_me_true = (1 == 1)}
> 

This worries me, much the same as when I see someone code:

	#define	FALSE	0
	#define	TRUE	!FALSE

Makes me think that the person writing may really not know that a C
"boolean" expression (expression formed with the logical/relational operators)
is *defined* to be either 1 or 0.

...ihnp4!zaiaz!rlb                           -Ron Burk



More information about the Comp.lang.c mailing list