davidsiaw / luacppinterface

A Simple C++ Interface to Lua
MIT License
167 stars 27 forks source link

make LuaTable, LuaCoroutine, LuaFunction and LuaUserdata constructible #13

Open davidsiaw opened 10 years ago

davidsiaw commented 10 years ago

Theres no way to new these things, and it might be irritating to people.

davidsiaw commented 10 years ago

Easy just make them constructors that take the lua object

davidsiaw commented 8 years ago

c++0x issue. Constructors cannot be delegated yet until c++11! Well, I guess this means a little bit of duplicated code.