What are (were) the most difficult parts of D?

Adam D Ruppe destructionator at gmail.com
Thu May 12 15:17:10 UTC 2022


On Thursday, 12 May 2022 at 14:42:43 UTC, Anonymouse wrote:
> That said, one thing I cannot seem to firmly wrap my head 
> around is `is` expressions. `is` does so many things.

It is simpler than it looks, I wrote about it in my book and in a 
post here:

https://forum.dlang.org/post/xklcgjaqggihvhctczxx@forum.dlang.org

> ```
> alias AA = long*[string];
> static if (is(AA whatEvenGoesHere : VP[K], VP, K))

You don't have to put anything there. The is expression kinda 
parallels declarations, so that thing would be the name for the 
newly declared symbol. But you don't need to declare a new symbol 
there so you can leave it blank; most the pieces are optional.

> The one thing that has caused me most anguish and woe is 
> hands-down https://issues.dlang.org/show_bug.cgi?id=18026 
> though.

yeah bugs happen.


More information about the Digitalmars-d-learn mailing list