[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua, LuaJIT2 and differences with the length operator
- From: Leo Razoumov <slonik.az@...>
- Date: Tue, 4 Jan 2011 08:18:29 -0500
On Wed, Dec 29, 2010 at 10:31, Luiz Henrique de Figueiredo
<lhf@tecgraf.puc-rio.br> wrote:
> Let's not get into this discussion again: #t does not return anything useful
> if t is "an array with holes".
There is a good reason why this question persistently comes up again and again.
Lua provides no good way to test whether a given array has holes or
not. Most of the time one relies upon leap of faith to trust #t
values. In that regard Lua quite successfully bridged a gap between
Coding and Religion:-)
--Leo--