[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: The Undefined Country (was Re: Quest: real world "Lua array with holes" usage)
- From: Dirk Laurie <dirk.laurie@...>
- Date: Tue, 26 Jul 2016 10:47:24 +0200
2016-07-26 8:55 GMT+02:00 Thomas Jericke <tjericke@indel.ch>:
> As interesting statements like (a = a or 5) are there is
> one thing you always have to remember while programming Lua, testing for
> existence and testing for truth is the same unless you use explicit
> comparison.
Actually, no. 'false' exists but does not test true. In fact, the type 'boolean'
was introduced in Lua starting at Lua 2.1 precisely because a value with
that property was needed.
- References:
- Quest: real world "Lua array with holes" usage, Rodrigo Azevedo
- Re: Quest: real world "Lua array with holes" usage, Roberto Ierusalimschy
- Re: Quest: real world "Lua array with holes" usage, Jorge
- Re: Quest: real world "Lua array with holes" usage, Hisham
- Re: Quest: real world "Lua array with holes" usage, Roberto Ierusalimschy
- The Undefined Country (was Re: Quest: real world "Lua array with holes" usage), Sean Conner
- Re: The Undefined Country (was Re: Quest: real world "Lua array with holes" usage), nobody
- Re: The Undefined Country (was Re: Quest: real world "Lua array with holes" usage), Jonathan Goble
- Re: The Undefined Country (was Re: Quest: real world "Lua array with holes" usage), Doug Currie
- Re: The Undefined Country (was Re: Quest: real world "Lua array with holes" usage), steve donovan
- Re: The Undefined Country (was Re: Quest: real world "Lua array with holes" usage), Philipp Janda
- Re: The Undefined Country (was Re: Quest: real world "Lua array with holes" usage), Thomas Jericke