From: matz@... (Yukihiro Matsumoto) Date: 2002-01-28T00:44:26+09:00 Subject: Re: TypeError verus NoMethodError Hi, In message "TypeError verus NoMethodError" on 02/01/26, "Chr. Rippel" writes: |I wanted to point out an inconistency (IMO as usual) that build |in singleton/immutable classes NilClass, TrueClass FalseClass, |Symbols and Numeric instances follow the old style Exception |scheme of raising a TypeError when attempting to clone or dup - |instead of following the new style NoMethodError exception. It's TypeError because they are *special (immediate) values*. I don't think Fixnums and Symbols are singletons. But, hmm, maybe it's good to remove dup and close from those happened to be singletons. |I also take this as an opportunity to send in a fix for my revisited |version of singleton.rb - (I just realized that I removed the wrong |dup ...). Hm, maybe we should stick with the old version |anyway ... Ah, next time, send me a "patch", preferably in unified diff (diff -u). matz.