Import status
Lucas Goss
lgoss007 at gmail.com
Wed Jul 12 07:34:10 PDT 2006
Jeremy wrote:
>
> I'm new in this discussion :) What are "static imports" and FQN's?
>
static imports are a way to keep imported names out of the namespace.
FQN's means fully qualified names. It works like this:
static import std.stdio;
void main(char[][] args)
{
writefln("hello"); // illegal, writefln isn't in namespace
std.stdio.writefln("hello"); // ok, using fully qualified name
}
Lucas
More information about the Digitalmars-d
mailing list