lua-users home
lua-l archive

Re: Create a new table based on an already existed table (through Lua or C API)?

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


Example:
 local t = {}
 t.t = t
 assert((t == t.t) and (t.t == t.t.t) and (t.t.t == t.t.t.t))
-- and so on
You remember _G, don't you?
 assert(_G['_G'] == _G)
--Sudipto Mallick

AltStyle によって変換されたページ (->オリジナル) /