[Issue 1509] Need a way to create namespaces inside modules

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Sep 18 13:05:17 PDT 2007


http://d.puremagic.com/issues/show_bug.cgi?id=1509





------- Comment #3 from wbaxter at gmail.com  2007-09-18 15:05 -------
Walter brought up that a struct with all static methods is also a workaround.

The main functional deficiency with both these workarounds (aside from
aesthetic concerns over how kludgy it looks) is that neither solution permits
imports into that nested scope.

But allowing imports in nested scopes like structs and functions is another
enhancement that would certainly be welcome.


-- 



More information about the Digitalmars-d-bugs mailing list