[Issue 1509] Need a way to create namespaces inside modules
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Sep 16 23:05:21 PDT 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1509
------- Comment #2 from wbaxter at gmail.com 2007-09-17 01:05 -------
Here's a workaround from Daniel Keep on the NG:
"""
The way I usually work around this is like so:
template Namespace_()
{
// Stuff in the namespace.
}
mixin Namespace_ Namespace;
Kinda hacky, but it works :)
-- Daniel
"""
This is certainly better than creating a separate file, but still an awfully
bizarre and roundabout way to create a new namespace.
--
More information about the Digitalmars-d-bugs
mailing list