From: Kevin Smith Date: 2001-09-04T03:28:29+09:00 Subject: [ruby-talk:20799] Re: RCR: non-bang equivalent to []= --- "David A. Black" wrote: > > > K> class Array > > > K> def copy > > > K> return []+self > > > K> end > > > K> end > > > > > > Probably I'm missing something but you have written > > #clone > > > Are you suggesting changing #clone's name to #copy? Doh! I hadn't encountered Object#clone recently (if ever), and there's nothing in the Array docs that pointed me to it. Thanks for setting me straight. Still, I do like the idea of Array#clone replacing references of the old self with references to the new self... Kevin __________________________________________________ Do You Yahoo!? Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger http://im.yahoo.com