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++
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 usesel::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