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

Paolo Invernizzi via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Nov 27 13:26:59 PST 2016


On Saturday, 26 November 2016 at 19:57:21 UTC, Adam D. Ruppe 
wrote:
> On Saturday, 26 November 2016 at 17:37:57 UTC, Paolo Invernizzi 
> wrote:
>> This is stated in documentation [1]:
>
> What's the link?
>
> This is a known limitation, it has never worked. The docs 
> should reflect that, though some day, it might start working.

Sorry, I forgot to past it in the previous post: here it is.

https://dlang.org/spec/hash-map.html#static_initialization

--
Paolo


More information about the Digitalmars-d-learn mailing list