You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While we all know it's possible that Lua functions can return multiple values to other Lua functions and Selene can return multiple values from Lua to C++ thanks to sel::Tie , is there any way with Selene to pass multiple values from C++ to Lua? The readme/manual doesn't say anything about that, it only mentions multi-value returns from Lua to C++.
If that's not possible at the moment, could a feature be added that we can use sel::Tie not only to recieve multiple-value data from Lua, but to also send multiple values from C++ to Lua? For example:
C++
a, b, c=cpp_getCoordinates()
-- calls previously registered returnCoordinates() C++ function-- and sets a, b and c according to the sel::Tie returned from C++
The text was updated successfully, but these errors were encountered:
While we all know it's possible that Lua functions can return multiple values to other Lua functions and Selene can return multiple values from Lua to C++ thanks to
sel::Tie
, is there any way with Selene to pass multiple values from C++ to Lua? The readme/manual doesn't say anything about that, it only mentions multi-value returns from Lua to C++.If that's not possible at the moment, could a feature be added that we can use
sel::Tie
not only to recieve multiple-value data from Lua, but to also send multiple values from C++ to Lua? For example:C++
and in Lua
The text was updated successfully, but these errors were encountered: