The end of curl (in phobos)
krzaq via Digitalmars-d
digitalmars-d at puremagic.com
Tue May 10 07:19:15 PDT 2016
On Sunday, 8 May 2016 at 13:31:46 UTC, Vladimir Panteleev wrote:
> On Sunday, 8 May 2016 at 09:43:14 UTC, Steven Schveighoffer
> wrote:
>> My understanding is that libcurl isn't default installed on
>> some platforms (e.g. windows). So we have a dependency on an
>> external library that may not be present. If in "first five
>> minutes" user wants to execute downloads from http server and
>> is told "oh, to use Phobos, you must download another library,
>> sorry", I don't think that helps.
>
> I understand that this is no longer a problem. We link
> dynamically to the DLL, which is distributed with DMD, and it's
> lazy-loaded (so we don't do anything at all until the first
> std.net.curl function is called).
That could lead to some nasty surprises when distributing a
binary. I'd rather hear my customer say "I can't start your
program, because some .dll is missing" than "it randomly crashes
/ doesn't work".
More information about the Digitalmars-d
mailing list