[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: new API easier to use? (was: Embedding Lua for use in a MUD.)
- From: Roberto Ierusalimschy <roberto@...>
- Date: Tue, 13 Mar 2001 17:15:02 -0300
> 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.