> If the variable is global you can use the __index and __newindex > metamethods, for each global variable belongs to a table (_G in the > most common case). See test/trace-globals.lua in the official distribution. --lhf