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

2016-10-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=1509

--- Comment #6 from Bill Baxter  ---
Seems like aliased template is a pretty good substitute now. Thanks.

--


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

2016-10-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=1509

Andrei Alexandrescu  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||and...@erdani.com
 Resolution|--- |WONTFIX

--- Comment #5 from Andrei Alexandrescu  ---
I'll close this now, please reopen if necessary.

--


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

2015-06-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=1509

naptime naptimeentertainm...@gmail.com changed:

   What|Removed |Added

 CC||naptimeentertainment@gmail.
   ||com

--


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

2012-02-14 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=1509


d...@dawgfoto.de changed:

   What|Removed |Added

 CC||d...@dawgfoto.de


--- Comment #4 from d...@dawgfoto.de 2012-02-14 05:17:33 PST ---
Importing into functions, templates and structs do work now.
The cleanest way to fake a namespace is to alias a template.


cat  test.d  CODE
template MyNameSpace_()
{
  import std.stdio;

  void foo()
  {
  writeln(MyNameSpace.foo);
  }
}
alias MyNameSpace_!() MyNameSpace;

void main()
{
MyNameSpace.foo();
}
CODE

dmd -run test.d


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---