Originally Posted by Torhal
The table.getn method was actually deprecated in Lua 5.1 in favor of the unary length operator (#). You should also be using pairs for dictionary-style tables. For array-style tables, you can use either ipairs or the (slightly faster) incremental loop.
|
Yeah, I always prefer incremental loops as opposed to ipairs. Cheers