News for hackers. Stuff that matters.
Re:C++: Associative map containers with compile-time lookup by jordigh on Tuesday October 23, 2018 @09:57AM (#18283385)
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

It's a real shame because I prefer just about everything else about metaprogramming and compile-time evaluation in D over C++.

Re:C++: Associative map containers with compile-time lookup by atilaneves on Tuesday October 23, 2018 @01:03PM (#18285196)
You can write your own in D though.
Re:C++: Associative map containers with compile-time lookup by jordigh on Tuesday October 23, 2018 @01:21PM (#18285363)
I don't know how to yet. And if this is possible, is it also possible to fix standard assoc arrays?
Re:C++: Associative map containers with compile-time lookup by atilaneves on Tuesday October 23, 2018 @03:53PM (#18286830)
> 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.