Getting rid of global cdtors

Andrei Alexandrescu SeeWebsiteForEmail at erdani.com
Mon Jun 15 18:37:43 UTC 2020


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.


More information about the Digitalmars-d mailing list