poita.org

# Scoped Imports in D

One problem that I constantly run into in cases like this is that I haven’t imported std.stdio, so I have to go right up to the top of the file, add debug import std.stdio;, back down again, and continue. Sigh.
Not so fast! D has scoped imports, so you can put the import std.stdio; right where you need it.