RE: [AD] TRUE and FALSE

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Title: RE: [AD] TRUE and FALSE

> If you program "right" it shouldn't bother you in the first place. You
> should always use x = TRUE, if (x == TRUE) or if (x), and either will
> work as long as you are consistent. Using things like "x = 1; if (x ==
> TRUE)" is asking for trouble, in any program.

Never "if (x == TRUE)":

int y = FALSE;
int x = !y;
if (x == TRUE)

--
Vincent Penquerc'h



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/