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
I have a need to add property setters separately from getters. This is not necessarily because I want write-only properties, though that would be a potential consequence of changing LuaBridge. It simply is the case that the constexpr code I'm working on makes it extremely difficult or impossible to know the getter and setter addresses at the same time (at least on the Visual Studio 2019 platform).
I hacked the LuaBridge source code to do this, by adding an addPropertySetter function that only takes a setter. It seemed to be trivially straightforward, but I am not an expert on LuaBridge source code. Is this something the broader community sees a need for? Has it been done in any of the other forks?
EDIT: Originally I used an overload of addProperty that only took a setter. But I realized that made it too easy to add a setter accidentally instead of a getter. So instead I made it an explicit function.
The text was updated successfully, but these errors were encountered:
I have a need to add property setters separately from getters. This is not necessarily because I want write-only properties, though that would be a potential consequence of changing LuaBridge. It simply is the case that the
constexpr
code I'm working on makes it extremely difficult or impossible to know the getter and setter addresses at the same time (at least on the Visual Studio 2019 platform).I hacked the LuaBridge source code to do this, by adding an
addPropertySetter
function that only takes a setter. It seemed to be trivially straightforward, but I am not an expert on LuaBridge source code. Is this something the broader community sees a need for? Has it been done in any of the other forks?EDIT: Originally I used an overload of
addProperty
that only took a setter. But I realized that made it too easy to add a setter accidentally instead of a getter. So instead I made it an explicit function.The text was updated successfully, but these errors were encountered: