[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: table.getn in Lua 5.0.2/3
- From: Stefan Brantschen <sbr@...>
- Date: Thu, 14 Sep 2006 13:31:14 +0200
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