lua-users home
lua-l archive

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

> local function foo(bar, baz)
> -- whatever
> end
> how can i determine the number of parameters this function needs?

luac -l prints that number (and it's a byte in the string produced by
string.dump, though unfortunately not at a fixed offset). But why do you
need it?