Re: number of parameters of a function
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: number of parameters of a function
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Tue, 6 Sep 2005 08:16:43 -0300
> 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?
--lhf