[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua 5.1+ and variable-argument tables
- From: Asko Kauppi <asko.kauppi@...>
- Date: Sat, 21 Aug 2004 02:18:20 +0300
Short point on efficiency.
Within larger Lua wrappers (s.a. those for GUI libraries) I've noticed
that it is often meaningful to use varargs for passing "the rest of the
stuff" to C level functions. I won't go into details, just pointing
out thatt '...' can, in fact, be a commonly used operator, and having
it efficient is Good For Lua in general.
-ak
21.8.2004 kello 01:02, Rici Lake kirjoitti:
My argument is that tuples-as-functions are more useful and while
possibly not as efficient as ..., much more efficient than
varargs-as-tables, which is probably efficient enough (imho).