lua-users home
lua-l archive

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


On Thu, Oct 29, 2020 at 2:53 PM Roberto Ierusalimschy
<roberto@inf.puc-rio.br> wrote:

> This is true for non-variadic functions as well, as Lua has to prepare
> the n arguments to the function.

Yes, my statement was trivial in its essence.

However, non-variadic functions are (usually, in most languages) not
called with a variable number of arguments, so one would not speak of
O(n) in that context.

Cheers,
V.