[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Determining the names of function arguments.
- From: mpb.mail@...
- Date: Thu, 25 Sep 2008 14:50:40 -0700
>> Is there any way to determine the names of function arguments _prior_
>> to calling the function?
On 9/23/08, Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br> wrote:
> Not in plain Lua, unfortunately. Try my bytecode inspector library:
> http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/#lbci
Thanks for the tip.
Perhaps I could use a call hook to "get inside" the function, probe it
via debug.getlocal, and then immediately throw an error inside the
hook to exit the function before it does anything?
-mpb