separate modules within 1 addon
View Single Post
11-09-12, 08:32 PM
A Molten Giant
Join Date: Jul 2006
Could be that he doesn't know tables can have indicies of different types too.
implements associative arrays, that is, arrays that can be indexed not only with numbers, but with any value (except
). Tables can be
; that is, they can contain values of all types (except
). Tables are the sole data structuring mechanism in Lua; they can be used to represent ordinary arrays, symbol tables, sets, records, graphs, trees, etc. To represent records, Lua uses the field name as an index. The language supports this representation by providing
as syntactic sugar for
. There are several convenient ways to create tables in Lua (see
Like indices, the value of a table field can be of any type (except
). In particular, because functions are first-class values, table fields can contain functions. Thus tables can also carry
Lua 5.1 Reference Manual §2.2
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
View Public Profile
Send a private message to SDPhantom
Visit SDPhantom's homepage!
Find More Posts by SDPhantom