in reply to Designing Multifile Modules
One thing that may help you is to realise that there is nothing that say that Some::Module::A has to have any specific relationship to Some::Module or Some::Module::B. Any one of these could be a parent, sibling or child, or completely unrelated to either of the other two.
Whilst it can be helpful to have the naming and directory structures reflect the hierarchy of classes, it can introduce some inconvenience also.
A possible approach to the problem would be to name your classes something along the lines of
Our::ProjectA::Doobries Our::ProjectA::Thingumajigs Our::ProjectA::Wotsits Our::ProjectB::These Our::ProjectB::Those Our::ProjectB::AndThemToo
Ie. Just stick with a flat namespace within the project regardless of the class hierarchy.
|
|---|