Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!gatech!akgua!sb6!scbhq!uahcs1!madhat!zaiaz32!rlb From: rlb@zaiaz32.UUCP Newsgroups: net.lang.c Subject: Re: What should be added to C (booleans) Message-ID: <167@zaiaz32.UUCP> Date: Mon, 2-Jun-86 10:06:11 EDT Article-I.D.: zaiaz32.167 Posted: Mon Jun 2 10:06:11 1986 Date-Received: Thu, 5-Jun-86 07:36:58 EDT References: <590@brl-smoke.ARPA> <3570@nsc.UUCP> <1462@mmintl.UUCP> <3414@ut-ngp.UUCP> <236@iscuva.UUCP> Organization: Zaiaz Communications. Huntsville, AL Lines: 15 > > 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