On Monday, 17 July 2017 at 21:27:40 UTC, Martin Nowak wrote:
On Monday, 17 July 2017 at 18:14:35 UTC, Andrei Alexandrescu wrote:
For those who want to play with our new static foreach feature and are willing to take the steps to building their own dmd,


Or just wait for the next nightly until tomorrow around 5AM UTC.

    curl -fsS https://dlang.org/install.sh | bash -s dmd-nightly

the feature is now merged in master: https://github.com/dlang/dmd/pull/6760

Great news.


And thanks to dmd-nightly, also on run.dlang.io:

https://run.dlang.io/?compiler=dmd-nightly&source=void%20main(string%5B%5D%20args)%0A%7B%0A%20%20%20%20static%20foreach%20(i;%20%5B0,1,2,3%5D)%0A%09%7B%0A%20%20%20%20%09pragma(msg,%20i);%0A%09%7D%0A%7D
  • static foreach is now in g... Andrei Alexandrescu via Digitalmars-d-announce
    • Re: static foreach is... John Colvin via Digitalmars-d-announce
    • Re: static foreach is... Martin Nowak via Digitalmars-d-announce
      • Re: static foreac... Seb via Digitalmars-d-announce
        • Re: static fo... Vladimir Panteleev via Digitalmars-d-announce
          • Re: stati... Seb via Digitalmars-d-announce
            • Re: ... Jack Stouffer via Digitalmars-d-announce
              • ... Steven Schveighoffer via Digitalmars-d-announce
              • ... Seb via Digitalmars-d-announce
                • ... Steven Schveighoffer via Digitalmars-d-announce
                • ... Seb via Digitalmars-d-announce
                • ... Steven Schveighoffer via Digitalmars-d-announce
                • ... Seb via Digitalmars-d-announce
                • ... Steven Schveighoffer via Digitalmars-d-announce

Reply via email to