lua-users home
lua-l archive

Re: Lua, LuaJIT2 and differences with the length operator

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


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

AltStyle によって変換されたページ (->オリジナル) /