Is it possible to make concept diamond inheritance?

I'm trying to implement VHDL language, it has two different types of expressions - SequentalExpression and ParallelExpression.

Both of concepts should have "AssignVariable" child. AFAIK concept can extend only one parent, is it correct?

If so, can you advise me any pattern which will be better than copying concepts?

Regards, Mark
4 comments
Comment actions Permalink
You could use a ConceptInterface for your child.
0
Comment actions Permalink
So I should create an AssignVariableInterface and make two AssignVariable concepts both implementing that Interface, right?
0
Comment actions Permalink
The child that concepts need to share will be defined in the InterfaceConcept that these concepts implement. Thus they will inherit the child definition, including its potential editor, constraints behavior and other aspects.
0
Comment actions Permalink
Now I understand, thanks for explanation!
0

Please sign in to leave a comment.