lua-users home
lua-l archive

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


Program:

   Lua 5.3.3  Copyright (C) 1994-2016 Lua.org, PUC-Rio

   > a={}

   > a[1]=1

   > a[2]=nil

   > a[3]=3

   > a[4]=4

   > print(#a)

   4

should returns value 1 but because a[2] is nil, it should return value 1 according book “Programming in Lua (Third edition)” – there is hole in sequence.

 

Tomas Lavicka

Ostrava, Czech Republic