lua-users home
lua-l archive

[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:
Sent from the Lua - General mailing list archive at