lua-users home
lua-l archive

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


4.0

-----Original Message-----
From: Roberto Ierusalimschy [mailto:rieru@delirius.cs.uiuc.edu] 
Sent: Monday, October 01, 2001 8:23 AM
To: Multiple recipients of list
Subject: Re: lua_getinfo


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