Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function f(_ENV, _G, table)
- -- how to access global "table" from here?
- end
- local env_without_G = setmetatable({}, {
- __index =
- function (tbl, key)
- if key ~= "_G" and key ~= "table" then
- return _ENV[key]
- end
- end
- })
- f(env_without_G, nil, nil)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement