lua-users home
lua-l archive

Re: Start of Lua rewrite in C++

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


On Wed, Oct 24, 2007 at 03:14:53PM -0200, Luiz Henrique de Figueiredo wrote:
> What's the point of rewriting Lua in C++? The code already compiles as C++.
- Change Lua to satisfy the exception requirements I mentioned in another mail:
 - Report errors from Lua as exceptions
 - Allow exceptions to safely "fly through" Lua
 which would make integration in C++ projects a heck more easy (that is C++
 projects on the level of "Exceptional C++" and "Modern C++ Design").
- Replace many of the macros by overloaded inline functions (which makes the
 code clearer e.g. because the prototype of a function documents better how
 it is supposed to be used compared to a macro).
- Simplify the code by moderate use of C++ features where helpful and 
 without performance overhead.
- Make the implementation more flexible, e.g. to allow something like
 typedef std::complex< double > lua_number.
That's a spontaneous brainstorm...
Regards, Colin

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