Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local NIL = {}
- local function FALSE()
- return false
- end
- function NIL:__index(key)
- if key:sub(0, 2) == "Is" then
- return FALSE
- end
- error(("tried to index %q on a nil value"):format(key), 2)
- end
- debug.setmetatable(nil, NIL)
- _R.NIL_META = NIL
Advertisement
Add Comment
Please, Sign In to add comment