>>Like strict.lua, this only covers undefined globals.
If you didn't define a local, and a global exists, it's technically not undefined.
Or do you mean to trap nil on table members (ie in a class system)? Then you gotta set the metatable on that table.
But having it look for a local and not falling back to globals seems rather un-Lua to me.
Kaj