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 Jonathan Castello once stated:
> I'm pretty sure (though not 100%) that that's just for C
> compatibility, since win32 is a C API after all. C didn't have
> dedicated true/false keywords before, and I *think* that true == 1 and
> false == 0 still.

  Technically in C, 0 is considered false, and anything but 0 is considered
true.  A small, but critical distinction.  

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

  -spc