From: dblack@... Date: 2007-02-17T05:15:02+09:00 Subject: Re: Oppinions on RCR for dup on immutable classes Hi -- On Sat, 17 Feb 2007, ara.t.howard@noaa.gov wrote: > On Sat, 17 Feb 2007 dblack@wobblini.net wrote: > >> >> I don't consider returning a shallow copy the same as returning self. >> It's not the same object as the receiver of the "dup" message. >> > > you may not. neither do i. nevetheless it quite true that one must > understand __completey__ the rhs in > > d = obj.dup > > in order to use d effectively. I'm definitely not lobbying against understanding things :-) David -- Q. What is THE Ruby book for Rails developers? A. RUBY FOR RAILS by David A. Black (http://www.manning.com/black) (See what readers are saying! http://www.rubypal.com/r4rrevs.pdf) Q. Where can I get Ruby/Rails on-site training, consulting, coaching? A. Ruby Power and Light, LLC (http://www.rubypal.com)