non-constant expression ["foo":5, "bar":10, "baz":2000]

Stefan Koch uplink.coder at googlemail.com
Thu Jan 6 16:01:09 UTC 2022


On Thursday, 6 January 2022 at 12:04:12 UTC, HuskyNator wrote:
> On Monday, 28 November 2016 at 14:41:44 UTC, Era Scarecrow 
> wrote:
>> On Monday, 28 November 2016 at 09:06:34 UTC, Paolo Invernizzi 
>> wrote:
>>> The point is that I was trying to avoid some cycle between 
>>> modules, detected by 2.072. This bug leads to pollution in 
>>> the use of static this only to workaround the limitation...
>>
>>  Wasn't someone working on a Associative Array static type 
>> that could be created at CTFE and run at runtime?
>
> I'm guessing there isn't.
> Sadly still running into issues because of this :(

Actually I did a DMD patch for that some time ago.

It's here: https://github.com/dlang/dmd/pull/13087

If there is interest in this I might revive it.


More information about the Digitalmars-d-learn mailing list