Re: new API easier to use? (was: Embedding Lua for use in a MUD.)
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: new API easier to use? (was: Embedding Lua for use in a MUD.)
- From: Roberto Ierusalimschy <roberto@...>
- Date: 2001年3月13日 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.
-- Roberto