std.uni vs std.unicode and beyond?
Nick Sabalausky
SeeWebsiteToContactMe at semitwist.com
Tue May 21 11:54:42 PDT 2013
On Tue, 21 May 2013 14:33:48 -0400
"Steven Schveighoffer" <schveiguy at yahoo.com> wrote:
> 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."
>
Nice. Is that a new thing, or have I managed to overlook it for
years?
More information about the Digitalmars-d
mailing list