On 6/14/11 9:45 AM, Michel Fortin wrote:
On 2011-06-14 09:53:16 -0400, Andrei Alexandrescu
<[email protected]> said:
http://www.wikiservice.at/d/wiki.cgi?LanguageDevel/DIPs/DIP11
I disagree about the model where you specify URLs in source code.
Why?
I'd suggest an alternative solution: If DMD finds a dmd.conf file at the
root of one of the -I directories, it uses the download parameters in
that file to download to populate the directory with modules as needed.
This would also apply to the current directory. The content of that
dmd.conf file could look like this:
[module-download]
package.* = http://someserver.net/d-repo/latest/
otherpack.* = http://otherserver.net/d-repo/1.2/
That way it's easy to understand what comes from where without having to
scan all your source code for pragmas.
I agree this would be good to have, but not exclusively. The problem is
that anyone who wants to share some code must require potential users to
modify their config files, instead of offering them a key-ready solution.
Andrei