Re: __traits(compiles) is true with warnings as errors

2021-10-13 Thread Tejas via Digitalmars-d-learn
On Wednesday, 13 October 2021 at 17:58:23 UTC, Jonathan Levi wrote: When dmd is passed the "-w" tag, it "treats warnings as errors" but not with the "__traits(compiles)" expression. Is this the intended action? This code should compile even with "-w", but it does not. int i; static i

Structured binding declaration (like in C++)

2021-10-13 Thread Vindex via Digitalmars-d-learn
Is there a decomposition for tuples and other data structures? For example, ``` auto t = tuple(1, "2"); auto (x, y) = t; // or auto (x, y) = t.expand; ```

__traits(compiles) is true with warnings as errors

2021-10-13 Thread Jonathan Levi via Digitalmars-d-learn
When dmd is passed the "-w" tag, it "treats warnings as errors" but not with the "__traits(compiles)" expression. Is this the intended action? This code should compile even with "-w", but it does not. int i; static if (__traits(compiles,i += 5.2)) i += 5.2; `pragma(msg, __tr

Re: tkd does not build anymore after 2.096

2021-10-13 Thread WebFreak001 via Digitalmars-d-learn
On Wednesday, 13 October 2021 at 02:03:30 UTC, rikki cattermole wrote: The repo itself hasn't been archived as of this writing. So a PR may succeed. But yeah the guy is gone by the looks. If he is willing this could be a possible candidate for moving it to dlang-community although it'll need

Re: tkd does not build anymore after 2.096

2021-10-13 Thread russhy via Digitalmars-d-learn
But ultimately, if the repo is archived, that means it is not maintained anymore The licence is MIT, so you can fork it and maintain a new updated version, at least an updated one that compiles -- github repos marked as "archived" should be reflected in the code.dlang.org page, dub should