Circular dependencies in Phobos

tsbockman via Digitalmars-d digitalmars-d at puremagic.com
Sun Jan 3 07:46:55 PST 2016


How important is it to avoid circular dependencies in Phobos?

I'm wondering because I have divided my work-in-progress 
std.checkedint module into various submodules to make it easier 
for people to import only the part they actually want to use.

However, most of these submodules depend at least a little bit on 
all the others. This comment by Walter Bright makes me wonder if 
the current layout would be accepted:

http://forum.dlang.org/post/n6alnb$226t$1@digitalmars.com
> Circular declarations are one thing, circular modules are 
> another. Phobos suffers from circular modules, and I'd like to 
> refactor them out.

Would my submodule scheme be likely to pass review, or should I 
just change it now?


More information about the Digitalmars-d mailing list