[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: new "empty" value/type in Lua?
- From: Sean Conner <sean@...>
- Date: Tue, 2 Jul 2013 00:36:28 -0400
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 ...