https://issues.dlang.org/show_bug.cgi?id=16532
[email protected] changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #3 from [email protected] --- (In reply to Jack from comment #2) > 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 You must alias it to create an instance. alias name = Name!(); and in the code use this alias. But you know, namespaces will never be added. D has modules, end of story. Ask on the news group and you'll see...You can even close this issue. --
