lua-users home
lua-l archive

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


On Thursday 02 March 2006 9:32 am, Alen Ladavac wrote:
> In the original Lua, 0 was logically true, because the only logically false
> value was nil. That made sense. But since the introduction of the boolean
> type in Lua 5, there is a slight mess in what is actually logically false,
> causing me to reconsider on the idea of 0 being logically true.

i don't feel too strongly about this, but if anythng, i would prefer it to be 
the other way around: the boolean type should have only one value: true.  
false would be a synonymous with nil.

-- 
Javier

Attachment: pgpUA65yudJXb.pgp
Description: PGP signature