lua-users home
lua-l archive

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


>Did not know that. However, at the very least it does throw away the
>_names_ of the arguments, correct?
>
>not if $debug is on.
>arguments are like local variables and these names are preserved when
>$debugging information is requested.

Can that info be gotten for functions that are not on the Lua stack
at the time?

>again, if $debug is on, then everything is available.
>luac uses this info for creating a listing:
>...
>but of course, luac does use inside information not available in lua.h.

Could you post some sample code of how to get the number and names of the
parameters for a given function?

Thanks,
Steve