On Tue, 21 May 2013 14:33:48 -0400 "Steven Schveighoffer" <[email protected]> wrote:
> On Tue, 21 May 2013 14:23:24 -0400, Nick Sabalausky > <[email protected]> wrote: > > > module std.uni; > > public import std.unicode; > > alias std.unicode.foo foo; > > alias std.unicode.bar bar; > > pragma(msg, "Please import std.unicode instead of std.uni") > > EOF > > from here: http://dlang.org/module.html#ImportDeclaration > > "All symbols from a publicly imported module are also aliased in the > importing module. This means that if module D imports module C, and > module C publicly imports module B which has the symbol bar, in > module D you can access the symbol via bar, B.bar, and C.bar." > Nice. Is that a new thing, or have I managed to overlook it for years?
