lua-users home
lua-l archive

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


Hello,

Is there a way to let a table item refer to another one:
   t = {x=1, y=x+1}
or
   t = {x=1, y=t.x+1}
(at table creation time).
Meaning let a table act as a scope/namespace/module.

Denis
________________________________

la vita e estrany

http://spir.wikidot.com/