How to declare static compile-time assoc array inside struct?
Steven Schveighoffer
schveiguy at gmail.com
Fri Aug 17 15:59:18 UTC 2018
On 8/13/18 9:21 AM, Andrey wrote:
> On Monday, 13 August 2018 at 11:53:06 UTC, rikki cattermole wrote:
>> You must use a module constructor to initialize it.
>
> Tried this:
> static this()
`shared static this()`
normal static this runs on every thread creation, and so cannot modify
immutable data.
-Steve
More information about the Digitalmars-d-learn
mailing list