copy constructors need documentation
RazvanN
razvan.nitu1305 at gmail.com
Mon Aug 5 07:51:23 UTC 2019
On Sunday, 4 August 2019 at 22:16:05 UTC, Manu wrote:
> Someone needs to write up the documentation for copy
> constructors.
> There's no source on how to write them, and explaining how to
> handle
> all the different qualifier cases and such.
> Currently, you have to troll through threads and try and
> interpret a
> DIP to work it out... it's not good enough. A user wouldn't
> even know
> D has copy constructors by looking at the language reference on
> dlang.org.
There is this documentation [1] that covers most of the aspects.
I didn't write too much about qualifiers in that documentation
because existing overloading and implicit conversion rules apply
(as stated in the DIP).
Can you point out explicitly what you think is vaguely explained?
[1] https://dlang.org/spec/struct.html#struct-copy-constructor
More information about the Digitalmars-d
mailing list