Proposal: this.d
Don Clugston
dac at nospam.com.au
Mon Sep 10 02:19:28 PDT 2007
Janice Caron wrote:
> Doesn't seem worth it, to me.
>
>
> Well, consider that you initially create a package called
> x
>
> Now the module is imported by
> import x;
>
> and then, and some later stage, the project gets bigger, and you want to
> throw extra source files into the mix. The desirable thing is to store
> all those extra source files in a subdirectory called x, but that's not
> permitted because x exists. So you move x into your new subdirectory -
> but now it has to be refered to as x.x, so existing code which imports x
> breaks, and you have to recompile it all -- which may not even be
> possible if x is a published library, and the source code which imports
> it is out of your hands.
eg, when x is std.math.
(This is why Tango has tango.math.Math, introducing an incompatibility with Phobos).
More information about the Digitalmars-d
mailing list