lua-users home
lua-l archive

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

> I propose a small enhancement to the API that IMHO would result in a
> huge improvement in usability: Let every function that pushes a result
> on the stack return the stack index of the result.

We thought about that for Lua 4.0, but it brings a performance problem.
In many machines (Linux, for instance), the size of a TObject is not
a power of 2, and so the difference between two (TObject *) is not
an efficient operation.

-- Roberto