Summary: Remove restrictions on module/package with same name.
--- Comment #0 from Austin Hastings <ah0801...@yahoo.com> 2010-10-06 13:44:33
I've got a library, let's call it myLib. And I've declared it in the libs
namespace, so that packages are of the form:
I'd like to separate the details of the interface from the details of the
implementation by creating a module, myLib.d, that imports the whole library
But I don't want a single D source file that eleventy-seven hundred lines of
source, so I'd like my implementations to live in:
// \file: source/libs/myLib/part1.d
// \file: source/libs/myLib/part2.d
Sadly, DMD2 currently prohibits this - module ... is in multiple packages ...
Given that this seems like a pretty straightforward approach to maintaining
clean code, I was surprised this isn't already supported.
Anyway, please make it possible for a module to share a name with a package.
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------