5 ms·
This is a sore point for me in D. Assoc arrays in D don't work at compile time. It's a really longstanding issue: https://issues.dlang.org/show_bug.cgi?id=1578
by jordigh 8y ago
This is a sore point for me in D. Assoc arrays in D don't work at compile time. It's a really longstanding issue:
https://issues.dlang.org/show_bug.cgi?id=1578 https://issues.dlang.org/show_bug.cgi?id=1578
It's a real shame because I prefer just about everything else about metaprogramming and compile-time evaluation in D over C++.
- atilaneves 8y agoYou can write your own in D though.
- jordigh 8y agoI don't know how to yet. And if this is possible, is it also possible to fix standard assoc arrays?
- atilaneves 8y ago> is it also possible to fix standard assoc arrays? AFAIK, yes, it's just that nobody has done that yet. The D runtime was written before there were templates, and it shows.