lua-users home
lua-l archive

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


The Lua bytecode does encode the two arguments to createtable in the
appropriate opcode.

On Fri, Mar 13, 2009 at 10:57 AM, Luís Eduardo Jason Santos
<jasonsantos@gmail.com> wrote:
> Is there a reason why there is no function in the table library to mirror
> lua_createtable() from the C API?
>
> Would it be a good idea to add such a function?
>
> If there are performance tuning opportunities to be explored by reducing the
> amount of table.inserts (Yes, I've read Roberto's article on Lua Gems), I
> would like to be able to make them dynamically and in pure lua.
>
> :-)
>
> Att.
> Luís Eduardo Jason Santos
>