lua-users home
lua-l archive

Re: a question about tables

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


Merick wrote:
> 
> I'm trying to get a handle on tables. Can some tell me, with these
> declarations am I creating one single table "tiles" with "pic" and "file"
> as subsets of that table, or am I just creating three different tables?
> 
> tiles = {}
> tiles.pic = {}
> tiles.file = {}
> 
> 
What your doing is essentially the equivalent of this:
tiles = {pic={},file={}}
So ya, they are subsets of tiles.
-- 
View this message in context: http://www.nabble.com/a-question-about-tables-tf3337160.html#a13078687
Sent from the Lua - General mailing list archive at Nabble.com.

AltStyle によって変換されたページ (->オリジナル) /