<p>I want to be able to use a function such as <code>writefln()</code> but without having to add <code>import std.stdio</code> at the top of the file.</p>

<p>Another way to explain it is the way you do it in C++. You can type <code>std::cout &lt;&lt; "Test";</code> and that will stop you from having to add <code>using namespace std;</code>. I want to do the same thing, but in D.</p>

I don't think you can do that. The
```
import
```
statement in D does more than the
```
using namespace
```
statement does in C++. It also replaces the
```
#include
```
preprocessor directive.