From: ara.t.howard@... Date: 2007-02-18T02:07:37+09:00 Subject: Re: Oppinions on RCR for dup on immutable classes On Sun, 18 Feb 2007, Stefan Rusterholz wrote: > Yukihiro Matsumoto wrote: >> |I'll try to explain it differently, depict my issue. Say you go to a >> |restaurant, take a look at the card and see "Spagetthi". You order >> |Spagetthi but the waiter just tells you "Oh, we don't serve Spagetthi >> |here.". You'd naturally ask "Why put it on the card then if you don't >> |serve it at all?" >> >> I imagine the waiter telling you "Oh, we don't serve Spaghetti >> _today_". >> >> matz. > > Um, no, with the classes mentioned in the RCR the answer would be > "never", not just "today". You'd have to buy the Restaurant and exchange > to cook to change the answer :) not really, you just have to learn how to cook! ;-) harp:~ > cat a.rb module DupSelf def dup() self end end nil.extend DupSelf p nil.dup harp:~ > ruby a.rb nil regards. -a -- we can deny everything, except that we have the possibility of being better. simply reflect on that. - the dalai lama