From: "David A. Black" Date: 2004-11-27T11:04:02+09:00 Subject: Re: Fixnum#clone and Float#clone raise different exceptions Hi -- On Fri, 26 Nov 2004, Yukihiro Matsumoto wrote: > Hi, > > In message "Re: Fixnum#clone and Float#clone raise different exceptions" > on Thu, 25 Nov 2004 22:49:20 +0900, Gavin Sinclair writes: > > |4.clone -> 4 sounds better to me, but I must be missing something. > > Do you accept the following behavior? > > a = 4 > a.instance_eval{@a=5} > b = a.clone # b = 4 > b.instance_eval{@a=10} > a.instance_eval{@a} # @a = 10 > > Similar thing can happen for a Float and singleton methods. I don't like it -- but even more fundamentally, "clone" really is never the right name for a method that returns self. A clone is by definition not the original, however much it may be like the original. David -- David A. Black dblack@wobblini.net