From: Yaser Sulaiman Date: 2012-09-19T04:20:11+09:00 Subject: Overriding Object#clone vs. Overriding Object#dup for Deep-Cloning --e89a8ff1c146499cd904c9fec7bb Content-Type: text/plain; charset=ISO-8859-1 Hi. Is there a community convention that specifies which of the two methods, `Object#clone` and `Object#dup`, should be overridden for the purposes of deep-cloning? On Stackoverflow, some say that `clone` should be overridden [1], while others say that `dup` is the method to be overridden [2]. So I suspect that there isn't such a convention. [1]: http://stackoverflow.com/a/8529625/1173 [2]: http://stackoverflow.com/a/11752485/1173 --e89a8ff1c146499cd904c9fec7bb Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi.

Is there a community con= vention that specifies which of the two methods, `Object#clone` and `Object= #dup`, should be overridden for the purposes of deep-cloning?
On Stackoverflow, some say that `clone` should be overridden [1]= , while others say that `dup` is the method to be overridden [2]. So I susp= ect that there isn't such a convention.

[1]: <= a href=3D"http://stackoverflow.com/a/8529625/1173">http://stackoverflow.com= /a/8529625/1173
[2]: http://stack= overflow.com/a/11752485/1173
--e89a8ff1c146499cd904c9fec7bb--