lua-users home
lua-l archive

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]


> 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

AltStyle によって変換されたページ (->オリジナル) /