[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua, LuaJIT2 and differences with the length operator
- From: Dirk Laurie <dpl@...>
- Date: Tue, 4 Jan 2011 15:41:31 +0200
On Tue, Jan 04, 2011 at 03:18:29PM +0200, Leo Razoumov wrote:
> Lua provides no good way to test whether a given array has holes or
> not.
Not Lua's job. Your job.
You, as programmer, make a conscious decision as to whether your
arrays are allowed to contain holes. If so, you don't rely on
the default #, table.insert, table.remove.
Trying very hard, this early 2011, to be a nice person,
Dirk