Originally Posted by justinbarrett
... accessing the table seems easy enough similar to arrays and other stuff in c...
|
Lua is
all about Tables. Tables are really more like
dictionaries,
associative arrays or
hash tables, rather than merely indexed arrays.
They can be
misused^H^H^H, coerced into Classes for Object-Oriented Programming style, and are a flexible and powerful replacement for C's
struct.
Learn the two styles of
for loops (numeric, and generic) and Tables, and you'll have a good grasp of Lua.