I'm trying to learn the ropes on Lua, and I was going through the online tutorials. One problem I tried to solve was to examine a table local foo = {}
to see how many elements it had. The tutorial gave the suggestion to use local length = table.getn(foo)
. When i try this using Lua52, I get an error stating attempt to call field 'getn' (a nil value)
. I looked around further and noticed that any of the functions given with table
produce the same type of error. Was the table
library removed from Lua? Is it a third-party library, or what gives?
19
votes