lua-users home
lua-l archive

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


On Mon, Aug 16, 2010 at 12:20 PM, Sean Conner <sean@conman.org> wrote:
>  Technically in C, 0 is considered false, and anything but 0 is considered
> true.  A small, but critical distinction.

Very true, I was referring to the literal value of the keywords
though. I recall that VB's 'true' has a value of -1, which is a little
disturbing...

>  K&R C (very old version) and C89 don't have a dedicated boolean type, but
> the newer C99 does.

Win32 existed before C99, hence why the API largely returns 0 or 1
(typedeffed as BOOL but it's still an integral type).

~Jonathan