[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: 2d arrays
- From: Adam Victor Brandizzi <qbyron@...>
- Date: Wed, 18 Jun 2003 16:06:06 -0300 (ART)
I think you probably want to do it:
array = {}
array["a"] = {}
array["b"] = {}
array["a"]["a"] = 1 -- note the difference!
array["a"]["b"] = 1 -- not
array["b"]["a"] = 2 -- "array["a"]["a"] = {1}"
array["b"]["b"] = 2 --This one creates another
-- table.
The original code creates a 3rd matrix, where de
3th indices are 1 and 2.
=====
==============================================
Yes, I'm a Pascal programmer, and it's not your business.
==============================================
"Would that all software were as neat as Lua!" Francis Burton
_______________________________________________________________________
Yahoo! Mail
Mais espaço, mais segurança e gratuito: caixa postal de 6MB, antivírus, proteção contra spam.
http://br.mail.yahoo.com/