Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!cbosgd!ihnp4!inuxc!pur-ee!uiucdcs!ccvaxa!aglew From: aglew@ccvaxa.UUCP Newsgroups: net.lang.c Subject: Re: Boolean Operators Slighted in C Message-ID: <2600052@ccvaxa> Date: Thu, 22-May-86 10:27:00 EDT Article-I.D.: ccvaxa.2600052 Posted: Thu May 22 10:27:00 1986 Date-Received: Sun, 25-May-86 14:18:03 EDT References: <314@cernvax.UUCP> Lines: 17 Nf-ID: #R:cernvax.UUCP:314:ccvaxa:2600052:000:674 Nf-From: ccvaxa.UUCP!aglew May 22 09:27:00 1986 ~> Boolean data type in C I say `typedef unsigned char bool'... Instead of using macros like lxor, I do #define boolval(bv) ((bv)!=0) so I can get away with saying boolval(XXX) ^ boolval(YYY) and the like. Doesn't help with waning to be able to do BBBBB &&= CCCCC; "Equal rights for Booleans!" has been my cry for a while - but I meant it with respect to computer architectures, not C. After all, C can't be expected to be better than present day architectures - C is just structured assembly language. :-). On second though, :-(. Andy "Krazy" Glew. Gould CSD-Urbana. USEnet: ihnp4!uiucdcs!ccvaxa!aglew 1101 E. University, Urbana, IL 61801 ARPAnet: aglew@gswd-vms