Getting rid of global cdtors
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.com
Mon Jun 15 18:40:24 UTC 2020
On 6/15/20 2:37 PM, Andrei Alexandrescu wrote:
> On 6/15/20 6:25 AM, Kagamin wrote:
>> auto our_freeaddrinfo(A...)(A a) @system
>> {
>> initialize;
>> if (freeaddrinfoPointer)
>> // May be null if WSAStartup() failed, just do nothing
>> return;
>> return freeaddrinfoPointer(a);
>> }
>>
>> My, my, that's a subtle bug.
>
> What is the bug? Thanks.
Oh, I see. Forgot to negate!
More information about the Digitalmars-d
mailing list