[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Create a new table based on an already existed table (through Lua or C API)?
- From: Sudipto Mallick <smallick.dev@...>
- Date: Thu, 21 Jan 2021 17:00:25 +0530
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