> can i get the compiled bytecode of just a function which is runing > inside lua? In Lua 5, yes. See the entry for "string.dump" in http://www.lua.org/manual/5.0/manual.html#5.3 -- Wim