Why are immutable fields with initializers deprecated?
Steven Schveighoffer via Digitalmars-d
digitalmars-d at puremagic.com
Tue Apr 29 10:11:49 PDT 2014
On Tue, 29 Apr 2014 13:09:01 -0400, Andrei Alexandrescu
<SeeWebsiteForEmail at erdani.org> wrote:
> A recent discussion
> https://github.com/D-Programming-Language/dmd/pull/3452 brought up a
> matter I'd forgotten - struct fields that are immutable and have
> initializer are deprecated.
>
> Why?
I think possibly it has to do with the fact that they originally did not
get stored per-instance. I remember a conversation about this (being a bad
thing), but have not searched the NG for it.
-Steve
More information about the Digitalmars-d
mailing list