lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


It was thus said that the Great Tim Hill once stated:
> omg DON'T get me started on *that* mess (grin).
> 
> Even the !FALSE trick doesn't work:
> 
> if (x == TRUE)…
> if (x) …
> 
> Still give different results, since !FALSE to the compiler is !0 which is
> 1, so the first if is really "if (x == 1) …" for most compilers.

  Well ... darn.  

  I know I used to do this (before I converted over to C99) ... perhaps I
only ever compared against FALSE ... 

  -spc (sigh)