Import proposals (Discuss)

Regan Heath regan at netwin.co.nz
Sun Jul 9 20:17:05 PDT 2006


More random musings.. if we have a syntax that reads:

import std.stdio as foo;

which imports the symbols in std.stdio into a namespace called 'foo',  
preventing access as just "writefln" requiring "foo.writefln" then what  
happens in a case like this:

--[a.d]--
import std.stdio;
template foo { writefln("Hello World"); }

--[b.d]--
import std.stdio as foo;

void main() {
   mixin foo;
}

?

Regan



More information about the Digitalmars-d mailing list