Skip to content

Instantly share code, notes, and snippets.

@LPGhatguy
Created April 25, 2014 19:57
Show Gist options
  • Save LPGhatguy/11301219 to your computer and use it in GitHub Desktop.
Save LPGhatguy/11301219 to your computer and use it in GitHub Desktop.
Creates an insane development environment.
--usage: require("oops")
local rawset, tostring = rawset, tostring
local meta = {
__mode = "v",
__index = function(self, index)
return tostring(index)
end,
__newindex = function(self, index, value)
rawset(self, tostring(index):upper(), value)
end
}
setmetatable(getfenv(1), meta)
setmetatable(_G, meta)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment