How can I explicitly qualify things from module?
    bearophile 
    bearophileHUGS at lycos.com
       
    Sun Dec 22 12:27:01 PST 2013
    
    
  
Cpluspluser:
> In C++ it is considered good practice to qualify names in 
> namespaces, as in:
>
> std::vector<int> v;
> std::cout << std::endl;
>
> How can this be done in D, with its std module?
Beside the answers already given you by others (of using 
std.stdio.writeln after a normal import), in D there are also 
static imports:
static import std.stdio;
And qualified imports:
import std.stdio: writeln;
All this should be more than enough for your needs.
Bye,
bearophile
    
    
More information about the Digitalmars-d-learn
mailing list