Deprecating this(this)
Nick Treleaven
nick at geany.org
Wed Apr 11 11:42:37 UTC 2018
On Thursday, 5 April 2018 at 18:46:25 UTC, H. S. Teoh wrote:
> I like this idea. Except the syntax could be improved:
>
> this(this orig) // <-- N.B.
> {
It's already valid syntax, equivalent to `this(typeof(this)
orig)`. It can be called explicitly, but is ignored for implicit
construction. Perhaps we will just enable `this(typeof(this)
orig)` for implicit construction too, if there's no postblit
defined.
More information about the Digitalmars-d
mailing list