lua-users home
lua-l archive

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


Please note that if you use a table as a list to store items at positions 1
to N it *is* actually implemented as a list (array of values).  It's just
that Lua's implementation is opaque for the programmer in order to offer a
simple unified interface.  (There is some heuristic involved to place
numeric indices either in the array part or hash part of a table.)  Have you
ever profiled Lua against Python in some actual scenario's involving lists?

--
Wim