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


Nick Sabalausky <cbkbbej...@mailinator.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |cbkbbej...@mailinator.com


--- Comment #4 from Nick Sabalausky <cbkbbej...@mailinator.com> 2010-10-06 
18:23:30 PDT ---
AUIU, the suggestion is to be able to take this:

------------------
// File libs/fizbarlib.d
module libs.fizbarlib;
void fiz() {}
void bar() {}
------------------

And turn it into this:

------------------
// File libs/fizbarlib.d
module libs.fizbarlib;
public import libs.fizbarlib.fiz;
public import libs.fizbarlib.bar;

// File libs/fizbarlib/fiz.d
module libs.fizbarlib.fiz;
void fiz() {}

// File libs/fizbarlib/bar.d
module libs.fizbarlib.bar;
void bar() {}
------------------

That does sound like a good idea. In the meantime, I'd like to suggest this as
a workaround:

------------------
// File libs/fizbarlib.d
module libs.fizbarlib;
public import libs.fizbarlib_impl.fiz;
public import libs.fizbarlib_impl.bar;

// File libs/fizbarlib_impl/fiz.d
module libs.fizbarlib_impl.fiz;
void fiz() {}

// File libs/fizbarlib_impl/bar.d
module libs.fizbarlib_impl.bar;
void bar() {}
------------------

That should achieve the same goal, albeit perhaps not quite as nicely.

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

Reply via email to