lua-users home
lua-l archive

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


>> 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