How to implement a copy

Paul D. Anderson paul.d.removethis.anderson at
Thu Mar 18 15:20:32 PDT 2010

bearophile Wrote:

> Paul D. Anderson:
> > Or is this a distinction without a difference?
> For POD structs like this one I suggest to implement nothing, and just let the compiler copy the struct by itself.
> If the struct is not a POD then I like the dup property. Each of those other ways can be OK, according to the syntax you prefer to use :-) The free copy function is probably not necessary.

Thanks for the help.

More information about the Digitalmars-d-learn mailing list