DON'T EVER DO THIS!!!

Jay Freeman freeman at spar.UUCP
Sat Aug 3 06:30:50 AEST 1985


[]

In article <536 at aicchi.UUCP> ignatz at 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)



More information about the Comp.lang.c mailing list