Segfault upon modifying immutable AA in static this
"Nordlöw" via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat Jan 24 05:30:43 PST 2015
On Saturday, 24 January 2015 at 13:29:36 UTC, Nordlöw wrote:
> The issue originates from module level intialization of static
> immutable AAs at
>
> https://github.com/nordlow/justd/blob/master/conv_ex.d
>
> Do I have to change the initialization of the AAs to be
> explicitly inline at definition of the AAs or can I preserve my
> convenient foreach over the AAs in the `static this` to
> automatically get the integer value to be stored?
>
> Note that this does not segdefault on latest stable DMD 2.066.
Also note that removing the immutable keyword from the AAs make
by conversion function non-pure which I would like to avoid if
possible.
More information about the Digitalmars-d-learn
mailing list