n
Size: a a a
S
L
S
S
L
S
local
" есть local function snap()
local g = {}
for k, v in pairs(_G) do g[k] = v end
return g
end
local function check(g)
for k, v in pairs(_G) do g[k] = nil end
return g
end
local g = snap()
require'mylib'
require'inspect'( check(g) )
S
setmetatable(_G, {__newindex = function(self, k, v)
print("set global", k, v, debug.traceback(2))
rawset(self, k, v)
end})
S
local
)S
let
же в жаваскрипте ругани особо не слышно.S
ВГ
S
S
ВГ
S