From: Eric Hodel Date: 2004-05-17T10:16:22-07:00 Subject: Re: Why do #dup and #clone behave differently with respect to instance methods --nOM8ykUjac0mNN89 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Robert Klemme (bob.news@gmx.net) wrote: > Here's a technical description: >=20 > "While clone is used to duplicate an object, including its internal state, > dup typically uses the class of the descendent object to create the new > instance." > http://www.ruby-doc.org/docs/rdoc/1.9/classes/Object.html#M000889 Note that #clone also copies the frozen and tainted state of an Object, while #dup does not. --=20 Eric Hodel - drbrain@segment7.net - http://segment7.net All messages signed with fingerprint: FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04 --nOM8ykUjac0mNN89 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQFAqPNmMypVHHlsnwQRAuL1AJ9K3KeTQfynyycKLV72eDhU+HNwIwCg1ta2 a+qUAjMjZIvWw3SK94xTuA8= =aq6Z -----END PGP SIGNATURE----- --nOM8ykUjac0mNN89--