Deprecating this(this)
Kagamin
spam at here.lot
Tue Apr 3 07:39:15 UTC 2018
On Monday, 2 April 2018 at 14:42:17 UTC, ag0aep6g wrote:
> The way it works in a const constructor is that `this.foo =
> bar;` is considered initialization, not assignment.
Do you mean the spec? Andrei complained about implementation.
Const constructors are already implemented as needed for postblit.
> In a postblit function, we can't say it's initialization,
> because the field already has a value that can't be ignored.
Fields are initialized before const constructor too.
More information about the Digitalmars-d
mailing list