Using constraints defined on super-concept Follow
I defined constraint (can be parent) on abstract concept, and tried using it on sub-concept. The function didn't work. Moving the constraint definition into the extending concept cause the function to work. This force me to duplicate same constraint on every sub-concept.
Any help?
Any help?
Please sign in to leave a comment.
You then can provide a nice error message and perhaps this is also applied to sub-concepts.
Right now I'm taking the following approach: Define the constraint logic as a method in the super-concept behavior and explicitly call this method from sub-concept constraint. This allows me to prevent complex code duplication and leaves (relatively small) burden of adding the call in every sub-concept.