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

Chad Joan via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Feb 21 14:26:01 PST 2017


On Tuesday, 21 February 2017 at 21:58:07 UTC, Stefan Koch wrote:
> 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.

I wondered if this might be the case.

Well, I won't worry about it then.  I'll have to find another way 
around.

Thanks a bunch!


More information about the Digitalmars-d-learn mailing list