This is a FAQ. See http://lua-users.org/lists/lua-l/2006-11/msg00334.html and http://lua-users.org/wiki/LuaFaq . --lhf