Copy Constructor DIP and implementation
Gary Willoughby
dev at nomad.uk.net
Wed Sep 12 19:18:11 UTC 2018
On Wednesday, 12 September 2018 at 16:40:45 UTC, Jonathan M Davis
wrote:
> Ultimately, I expect that if we add any attribute for this,
> people coming to D are going to think that it's downright
> weird, but if we're going to have one, if we go with @implicit,
> we're future-proofing things a bit, and personally, thinking
> about it over time, I've found that it feels less like a hack
> than something like @copy would. If we had @copy, this would
> clearly forever be something that we added just because we has
> postblit constructors first, whereas @implicit at least _might_
> be used for something more.
That does actually make a lot of sense. Isn't there any way these
constructors could be inferred without the attribute?
More information about the Digitalmars-d-announce
mailing list