lua-users home
lua-l archive

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


a[1] = 1 -- lua makes a a table... whoops no it errors!
a = {}; a[1]=1 -- aah....

You don't need to take two commands to do it - 'a = {[1] = 1}' or 'a =
{1}' are valid.