std.uni vs std.unicode and beyond?
Steven Schveighoffer
schveiguy at yahoo.com
Tue May 21 11:33:48 PDT 2013
On Tue, 21 May 2013 14:23:24 -0400, Nick Sabalausky
<SeeWebsiteToContactMe at semitwist.com> 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."
-Steve
More information about the Digitalmars-d
mailing list