lua-users home
lua-l archive

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


>>> 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.