Copy constructor in D. Why it is necessary to have it.

bearophile bearophileHUGS at lycos.com
Tue Sep 30 14:53:32 PDT 2008


Bill Baxter:
> I like clone.  It's used pretty commonly in other languages.

Java?


> I'd rather not follow up one slightly odd-ball name with an even more
> bizarre one.  But it's not gonna be anything more than a convention
> anyway, so you're free to name it .deepdup if you like in your
> libraries.

If the D convention is clone I'll use clone! :-) Using different conventions is generally bad.

Bye,
bearophile



More information about the Digitalmars-d mailing list