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

Reply via email to