Double bracket "{{" for scoping static foreach is no longer part of D

data pulverizer data.pulverizer at gmail.com
Wed Dec 22 15:57:29 UTC 2021


Hi All,

I noticed that the double bracket `{{` for scoping `static 
foreach` is no longer part of D and it looks like it has been 
replaced with 
https://dlang.org/changelog/2.098.0.html#AliasAssign. Could 
someone confirm this with a link to the DIP and any other tools 
that we should be using (I guess it's now more reliance on CTFE)?

I tend to avoid CTFE for small amounts of meta-programming since 
it is resolved at "soft compile time" and being cautious by 
nature I tend to rely more on templates. The change is not a big 
deal, I just didn't see any news about it.

Many thanks


More information about the Digitalmars-d-learn mailing list