lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Fri, 28 Sep 2001, Curt Carpenter wrote:

> Why is it that in a call hook calling lua_getinfo(l, "lnuS", ar) will
> sometimes generate an error complaining that "value for `lua_getinfo' is
> not a function"?

A bug?


> Shouldn't by definition the ar I get in a call hook be a function?

Yes.


> Or to rephrase the problem, how can I get as much
> information in a call hook as possible in a generic way without running
> the risk of generating an error?

You should be able to call lua_getinfo without errors. What version are you
using (Lua 4.0 or 4.1)?

-- Roberto