[Issue 20670] immutable template specialization pattern matches immutable struct, strips immutable
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat May 14 19:15:44 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=20670
--- Comment #16 from FeepingCreature <default_357-line at yahoo.de> ---
Huh. Yeah...
Does that work?
edit: Also, I hadn't quite realized that struct S was still, actually,
immutable on every field. Now that you point it out, that obviates the worries
I'd had about it. But why is there even an immutable tag on it then? Why isn't
`immutable struct S` just exactly the same as `struct S { immutable: }`?
--
More information about the Digitalmars-d-bugs
mailing list