[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: [ANN] Selene v0.4 released
- From: Jeremy Ong <jeremycong@...>
- Date: Tue, 22 Apr 2014 22:39:24 -0700
Hi lua-l,
I'm happy to announce v0.4 of Selene[1], a C++11-only wrapper around
the Lua C bindings. This release brings a few features and bug fixes:
1. Raw lambdas can now be registered. For example:
// C++
sel::State state;
state["add"] = [](int a, int b) { return a + b; };
-- in lua
print(add(2, 5)) -- will print 7
2. Const member variables and functions can now be registered with
class and object instances (previously resulted in a compilation
error). These registrations will do the right thing (a registered
const member variable will not have a setter generated for it). Thanks
Systemcluster for reporting it! [2]
3. Added an OpenLib member method to sel::State for opening lua libraries [3]
4. Numerous fixes of possible compilation errors or warnings [4,5,6]
5. Of course, tests were added for the new features added.
Thanks to all who contributed with either code or comments.
Cheers,
Jeremy
[1] https://github.com/jeremyong/Selene
[2] https://github.com/jeremyong/Selene/issues/31
[3] https://github.com/jeremyong/Selene/commit/32f92ecabc903230af4ff82ca171b8b704f6e4c5
[4] https://github.com/jeremyong/Selene/pull/29
[5] https://github.com/jeremyong/Selene/issues/28
[6] https://github.com/jeremyong/Selene/pull/26
[7] https://github.com/jeremyong/Selene/commit/35f93c0873f5bf4280a0df43fd9e611e12852f56