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 question regarding the necessity of class IInterface.
As mentioned in the doc, all objects must implement IInterface, but on the other hand, all components must also implement IComponent. So, doesn't it make more sense to let IComponent inherite from IInterface?
Therefore simpler to just merge IInterface into IComponent?
Ps: I looked into the project , seems IInterface is not used anyway.
The text was updated successfully, but these errors were encountered:
As per the comment and also written in the README.md file it's for adding future functionality system wide.
By having IInterface you have a common base defined for every object in the component system.
With IInterface being the root object it is very easy to add new common behaviour across all objects, not just components, conversely if IInterface doesn't exist then it would be considerably more effort to do it.
It doesn't add any complexity to anything.
If you remove IInterface from IComponent then you break the common ancestor for all objects inside the component system.
/** * @brief The IInterface class is the root level object for all objects. * * @details All objects that reside in the component system should inherit this interface for future * compatibility. * * @class Nedrysoft::ComponentSystem::IInterface IInterface.h <IInterface>*/
I have a question regarding the necessity of class IInterface.
As mentioned in the doc, all objects must implement IInterface, but on the other hand, all components must also implement IComponent. So, doesn't it make more sense to let IComponent inherite from IInterface?
Therefore simpler to just merge IInterface into IComponent?
Ps: I looked into the project
, seems IInterface is not used anyway.
The text was updated successfully, but these errors were encountered: