If you've programmed in Lua 5.1 you've probably come across the function setfenv (and the associated getfenv ). Lua 5.2 removed those functions favor of the _ENV variable. The _ENV variable is an interesting change, and can accomplish many ... Read more...