Lua Memo

指定したオブジェクトの環境を返す

debug.getfenv (o)

オブジェクト o の環境を返す。

sample

print(debug.getfenv(t))