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
Hi, i'm using wrenpp an a toy game engine and I came to a use case where I'm a bit stuck. Suppose I have a base Node class and a Spatial class that inherits Node. Since in wren it is not possible to subclass a foreign class, in wrenpp I have to bind all the specific base class methods for each derived class each time.
What would be the best approach to automate this in wrenpp?
The text was updated successfully, but these errors were encountered:
It sure would be nice if subclasses could inherit foreign classes in Wren 🤔
Wren++ doesn't really help you in that regard, unfortunately! I would probably just dump the base class bindings in a function, which would be parametrized based on module and class name. At least the purpose of the code would be clear:
Hi, i'm using wrenpp an a toy game engine and I came to a use case where I'm a bit stuck. Suppose I have a base
Node
class and aSpatial
class that inheritsNode
. Since in wren it is not possible to subclass a foreign class, in wrenpp I have to bind all the specific base class methods for each derived class each time.What would be the best approach to automate this in wrenpp?
The text was updated successfully, but these errors were encountered: