lua-users home
lua-l archive

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


Hi Lua-l,

I'd thought I'd post my efforts to abstract the Lua C API to C++11 here in case anybody found them useful. The link is http://github.com/jeremyong/Selene and the goals are:

1. Avoid any preprocessing and macros (only vanilla C++11 allowed)
2. Strive for a clean interface aggressively leveraging C++ type deduction
3. Adhere to RAII principles so that temporaries are bound to their appropriate owners, be the lua context, a table, or what have you.

There is an accompanying 3 part blog series in the README if you are interested in the implementation details.

Cheers,
Jeremy