lua-users home
lua-l archive

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


Daniel

On 14 Sep 2006, at 12:33, Daniel Silverstone wrote:

As I understand it, the table.* functions are only really guaranteed to
work when *NOT* mixed with direct setting/unsetting of values in the
table.
If you do directly fiddle with the table then strange things can occur.

I do not understand your point. Isn't Shmuel's code

  t = {}
  table.insert(t, "a")
  t[1] = nil
  print (table.getn(t))

perfectly correct Lua, including the usage of the table lib?

Thanks
- Stefan