On Wednesday, October 11, 2017 17:05:19 Daniel Kozak via Digitalmars-d wrote: > so you can try to use static immutable insted of enum
Yeah. Similarly, you could just have a regular function that you call at compile time that returns what you want (assuming that it's not being assigned to an enum) - then if it's just being used to generate something that you actually want to keep around after compiling, you're not stuck with the AA continuing to exist past compile time. I don't know that it will ever happen, but there has been talk of disallowing enums of anything that will allocate, because you pretty much never want that (since it will allocate every time it's used), and it's easy to do accidentally. - Jonathan M Davis