lua-users home
lua-l archive

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


Hi

Can you specify how you want to access your matrix?

like

mymatrix["bar"]["tex"] = "x"

or 

mymatrix[1][2] = "foo"

?


Eike
  

> Hello,
> 
> I am new to Lua, so please bear with me. I am trying to build a two
> dimensional array like in:
> http://www.lua.org/pil/11.2.html
> 
> However, I would like to index this "matrix" with strings. Is it
> possible? I have tried to do the same thing as in the example, but it
> does not work.
> 
> Thanks in advance,
> Tony
>