Spurious imports in Phobos ?

Trass3r un at known.com
Wed Nov 9 05:15:22 PST 2011


> 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.

It can be quite useful. I use it often for C library wrappers. As soon as  
you import the wrapper code you automatically import the bindings to be  
able to use constants etc.


More information about the Digitalmars-d-learn mailing list