Import status

Jeremy Jeremy_member at pathlink.com
Wed Jul 12 07:49:09 PDT 2006


In article <e931aa$t1j$1 at digitaldaemon.com>, Lucas Goss says...
>
>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

Hrm, I don't think I like that idea... there are "static ints" and "static ifs"
that are unrelated to "static imports"... just seems very unintuitive. I don't
know all of the previous arguments for/against it, but it doesn't get my
(initial) vote :)





More information about the Digitalmars-d mailing list