lua-users home
lua-l archive

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


> for example i have a = {1, 2, 3} and b = {5, 6, 7} so i want know this is possible :
> c = a + b
> or
> c = a * b
> and lua + or * all values and return new table in c variable.

Learn about metatables and metamethods.