>I need the second argument to be on the top of the stack for the >following call to lua_ref() to work, >so the easiest way to get there is lua_settop()... otherwise, as I Yes, you're right. Sorry for the noise. I misunderstood the comment. --lhf