lua-users home
lua-l archive

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


Yes, this is quite simple

Test = {} // First dimension
Test[1] = {} // Second dimension
Test[1][1] = 10
Test[2] = {}
Test[2][1] = "Hello World"

You can go as deep as you like...





>Hello,
>Is it possible to define multidimensional arrays in Lua?

>Hence:

>Some_array [ i, j, k,,n ] = some_value
>for values of i, j, k..to n

>I don't believe that this is an associative array issue.

>Information on what is probably a really straightforward subject will be
>gratefully received.


For information about the Standard Bank group visit our web site 
www.standardbank.co.za

Disclaimer and confidentiality note 

Everything in this e-mail and any attachments relating to the official business of the Standard Bank Group Limited  is proprietary to the group.
It is confidential, legally privileged and protected by law. Standard Bank does not own and endorse any other content. Views and opinions are
those of the sender unless clearly stated as being that of the group.The person addressed in the e-mail is the sole authorised recipient. Please
notify the sender immediately if it has unintentionally reached you and do not read, disclose or use the content in any way.
Standard Bank can not assure that the integrity of this communication has been maintained nor that it is free of errors, virus, interception or interference.
I