[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Re[2]: Lua 5.1 (work2) now available
- From: "Steve Donovan" <sjdonova@...>
- Date: Thu, 04 Nov 2004 14:08:24 +0200
>>> gz@tset.de 11/04/04 01:56PM >>>
> I may be a bit thick, but what's wrong with table.insert()?
It's the best solution, IMHO.
I tend to declare an alias like:
local append = table.insert
...
append(tbl,val1)
append(tbl,val2)
Looking at the implementation of table.insert, this may not be
optimal, but I don't think tbl[kk] = val; kk = kk + 1 is
going to be much faster
steve d.
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.