lua-users home
lua-l archive

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


> dog = {'bark', 'bark', 'bark'}
> cat = dog
> print(cat[1])--> bark
> 
> Is there a way to assign let's say 50 names to the one table in a few lines?

alias={"cat", "mouse", "lion"}

for k,v in pairs(alias) do
	_G[v]=dog
end