lua-users home
lua-l archive

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


On 3/5/06, D Burgess <dburgess@gmail.com> wrote:
I thought I understodd Lua tables, but obviously not.
Would someone explain the rules that cover the following
(5.1) behaviour  of '#':

> a={nil,2,3,4,5,6}
> =#a
6

What I find interesting is that an explicitly set nil value is not considered a "hole" in the table.

According to the documentation that shouldn't be.  A bug?

--
// Chris