lua-users home
lua-l archive

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


dustpylex2 wrote:

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.
lol man, this is an old old post, I've already got tables figured out since then