Dear Christian,
Thanks for your response. I'm going to try be more specific, but to remain concise.
In our restxq application, we have one "main" module and several "dependent" modules. The main module receives the http requests (well, it declare functions annotated with a path, say ourApp/{$param}), and calls functions in one of the dependent module. This dependent module is determined by the path : a request to ourApp/moduleA will cause the main module to use functions in the moduleA dependent module, while a request to ourApp/moduleB will cause it to call functions in the moduleB dependent module.
It works just well if we import all the dependent modules in the main module using the regular way, with import module statements. Yet, we want to go one step forward and import the dependent modules only when/if needed. More precisely, we'd like to be able to add new dependent modules in the restxq directory without having to modify the main module by adding new import module statements.
But it's probably some kind of inappropriate perfectionism that isn't worth spending much time !
Best,
Jean-Philippe
PS: Thanks for looking at the circular import issue. Having our dependent modules importing back the main module would be very helpful!