How do I use CTFE to generate an immutable associative array at compile time?

Stefan Koch via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Feb 21 13:58:07 PST 2017


On Tuesday, 21 February 2017 at 21:53:23 UTC, Chad Joan wrote:
> Hello all,
>
> I'm trying to make this work:
>
> [...]

You cannot create AA's at ctfe and carry them over to runtime use.
You'd have to use a costum dictionary-type.
I think the vibe.d project has one you could use.


More information about the Digitalmars-d-learn mailing list