+ 1
Cicrcular reference of modules
Hi If two modules have dependency on each other, how to resolve this ? In other words, Module A need Module B to build first where as Module B also need to have Module A billd first. How to solve this issue ?
3 Answers
+ 3
Might also ask yourself if one of the modules should be split, so instead of
A <-> B
You now have
A -> B -> C
But in cases where you can't avoid circular references, interfaces are the usual solution.
+ 2
Ketan Lalcheta ,
try to use chatgpt by giving the complete text of your post. i did a try and got 4 various solutions, depending on the use case.
+ 1
I want to have both module built one after another separately.
I got one solution till now , that is abstract interfaces of both module and make it virtual then actual module will implement those details.
Would you mind sharing other solution?