Proposal: this.d
Janice Caron
caron800 at googlemail.com
Mon Sep 10 01:56:07 PDT 2007
>
> 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.
However, if you could just rename the source file "this.d", and stick it
into the subdirectory, then you'd get the ability to add extra files to the
package *without breaking deployed code*
That seems worth it to me.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20070910/fbf33ae6/attachment.html>
More information about the Digitalmars-d
mailing list