Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site spar.UUCP Path: utzoo!linus!philabs!prls!amdimage!amdcad!decwrl!spar!freeman From: freeman@spar.UUCP (Jay Freeman) Newsgroups: net.unix,net.lang.c Subject: Re: DON'T EVER DO THIS!!! Message-ID: <440@spar.UUCP> Date: Fri, 2-Aug-85 16:30:50 EDT Article-I.D.: spar.440 Posted: Fri Aug 2 16:30:50 1985 Date-Received: Sun, 4-Aug-85 06:20:16 EDT References: <536@aicchi.UUCP> Reply-To: freeman@max.UUCP (Jay Freeman) Distribution: net Organization: Schlumberger Palo Alto Research, CA Lines: 17 Xref: linus net.unix:4659 net.lang.c:5355 [] In article <536@aicchi.UUCP> ignatz@aicchi.UUCP (Ihnat) writes: > [ ... ] DON'T *EVER* DO THIS!! > . > . > . > while (--count && > (!(rand_mod(prob)) || > (obj = occupant[y=(curkl->posy+curkl->vely+YSIZE00)%YSIZE] > [x=(curkl->posx+curkl->velx+XSIZE00)%XSIZE]) && > [ ... ] This all looks obvious to me ... except ... in the first line of code ... I can never remember what the "--" operator is supposed to do ... :-) -- Jay Reynolds Freeman (Schlumberger Palo Alto Research)(canonical disclaimer)