Spurious imports in Phobos ?
Somedude
lovelydear at mailmetrash.com
Wed Nov 9 04:45:11 PST 2011
Le 09/11/2011 13:15, Jacob Carlborg a écrit :
> Phobos contains a lot of templates and if a template isn't instantiated
> it won't be compiled. Meaning there can be hidden compile errors if you
> start to remove imports and they will not show until a template that
> uses something from the import is instantiate.
>
I see, but then
1. is there a systematic procedure to know if a an import is really needed ?
2. what is your opinion about public import ? In C++, "hidden" or
"implicit" #includes is a common source of compilation problems (order
of #includes), I tend to think it's a bad thing.
More information about the Digitalmars-d-learn
mailing list