Comment #0 by qs.il.paperinik — 2017-09-01T23:29:30Z
It is easily overseen that using enums creates a new instance every time as enums usually have types without indirections or are immutable (e.g. strings).
enum foo = [1,2,3];
results in
assert(foo !is foo);
which is weird. Any other identifier that represents an array wouldn't have this oddity.
Make it hard to use incorrectly and disallow enums that have mutable indirections.
See https://forum.dlang.org/post/[email protected]
Comment #1 by robert.schadek — 2024-12-13T18:54:23Z