Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/5/84; site baylor.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!seismo!ut-sally!ut-ngp!shell!neuro1!baylor!peter From: peter@baylor.UUCP (Peter da Silva) Newsgroups: net.lang.c Subject: Re: Re: Cryptic C Message-ID: <452@baylor.UUCP> Date: Sun, 18-Aug-85 09:18:34 EDT Article-I.D.: baylor.452 Posted: Sun Aug 18 09:18:34 1985 Date-Received: Sat, 24-Aug-85 02:21:42 EDT References: <2913@ncsu.UUCP> <709@brl-tgr.ARPA> Organization: The Power Elite, Houston, TX Lines: 21 > While this kludge obviously works, I think it adds one extra level > of mental processing when one is reading conditionals in C. This > is because there is no visible percept corresponding to one's > thoughts about comparison against zero; one has to explicitly apply > a conceptual language evaluation rule to map the expression into a > condition in order to extract the full meaning of the condition. Boy, I'd like to let a real psychologist go over that statement. I don't notice any effort understanding if(some expression returning a small int) in terms of booleans. Maybe because I never bothered with the "!= NULL" construct... > typedef int bool; #define bool char /* save a bit of memory eh? */ typedef int bool:1; /* pity this won't work */ -- Peter da Silva (the mad Australian werewolf) UUCP: ...!shell!neuro1!{hyd-ptd,baylor,datafac}!peter MCI: PDASILVA; CIS: 70216,1076