Release D 2.089.0

Andrea Fontana nospam at example.com
Thu Nov 7 16:37:56 UTC 2019


On Sunday, 3 November 2019 at 13:35:36 UTC, Martin Nowak wrote:
> Glad to announce D 2.089.0, ♥ to the 44 contributors.
>
> This release comes with corrected extern(C) mangling in mixin 
> templates, atomicFetchAdd and atomicFetchSub in core.atomic, 
> support for link driver arguments, better support of LDC in 
> dub, and plenty of other bug fixes and improvements.
>
> http://dlang.org/download.html
> http://dlang.org/changelog/2.089.0.html
>
> -Martin

My code hit a regression on 2.089.

This worked fine, before dmd 2.089 (reduced):

mixin Bug!"asd";

enum test;

template Bug(string n)
{
    int main()
    {
          import std;
          foreach(name;  __traits(allMembers,  __traits(parent, 
main)))
             static if (hasUDA!(__traits(getMember, 
__traits(parent, main), name), test))
                return 0;

          return 0;
    }
}



More information about the Digitalmars-d-announce mailing list