>When lua calls my registered C function, >can i from it find out the name of Lua function that called it? like trace >it back in stack? Yes, use the debug interface (available in C and in Lua), described in section 7 of the manual. --lhf