lua-users home
lua-l archive

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


> But you could also read this as: assign a the table value {1=1}, if a is not
> of type table. (Ofcourse, if a is a table the index would be
> created/overwritten). 

Certainly it could be like this, but then the relationship between
tables and varibales would be murky (like in awk, where tables can
exist only as variables). For instance, what would be the result
of "f(x)[1] = 1" (assuming that f(x) did not return a table)?

-- Roberto