[Issue 16532] Add "namespace" Keyword?

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Oct 21 07:59:28 PDT 2016


https://issues.dlang.org/show_bug.cgi?id=16532

--- Comment #2 from Jack <gyroheli at gmail.com> ---
Exactly, name spaces are supported but only through an extern. If I want to
write D code with namespaces it isn't possible. Hence a lack of completeness.

You can't use a template without a parameter?

template Name()
{
    enum a = 2;
    enum b = 3;
}

writeln(Name.a, Name.b); // error Name has no property a or b

--


More information about the Digitalmars-d-bugs mailing list