Dmitry T

Results 37 comments of Dmitry T

Nice to have: - Convenience. Unable to directly use `LOG_SCOPE` for C++ objects with `operator

How do you actually use coroutines? Could you please post some code examples?

Thanks for your response! And sorry for the late reply. Do you have a minimal example which you can share? Or maybe the original example is ok to be shared?...

Ok, let me implement this :)

@Belfer Lua follows the specific [rules](https://www.lua.org/manual/5.2/manual.html#2.4), citation is below. Briefly, you can only overload an arithmetic operator bound to a class instance. The @kunitoki sample does exactly that: it registers...

You can also pass `luabridge::LuaRef` to the constructor. One line less.

So you expect this should work: ```C++ luabridge::getGlobalNamespace (L) .beginClass ("Int") .addFunction ("get_data", &CData::get_data) .endClass (); ``` ... but it doesn't because there is an L-value reference parameter. `LuaBridge` doesn't...

Can you add a unit test which fails with the original implementation and works with the change? I'll gladly help once I have time.

My bad. I had to ask for unit tests at least.