[#3726] Fixnum#clone and Float#clone raise different exceptions — "David A. Black" <dblack@...>

Hi --

15 messages 2004/11/12
[#3749] Re: Fixnum#clone and Float#clone raise different exceptions — "David A. Black" <dblack@...> 2004/11/16

Hi --

[#3751] Re: Fixnum#clone and Float#clone raise different exceptions — Yukihiro Matsumoto <matz@...> 2004/11/16

Hi,

[#3752] Re: Fixnum#clone and Float#clone raise different exceptions — "David A. Black" <dblack@...> 2004/11/16

Hi --

[#3785] The latest 1.8.2 cvs prints parse error when starting extension compiling — Yukihiro Matsumoto <matz@...>

Hi,

13 messages 2004/11/23
[#3787] Re: The latest 1.8.2 cvs prints parse error when starting extension compiling — Johan Holmberg <holmberg@...> 2004/11/23

Fixnum#clone and Float#clone raise different exceptions

From: "David A. Black" <dblack@...>
Date: 2004-11-12 22:42:55 UTC
List: ruby-core #3726
Hi --

Compare:

irb(main):001:0> 3.clone
TypeError: can't clone Fixnum
        from (irb):1:in `clone'
        from (irb):1

with:

irb(main):002:0> 3.3.clone
NoMethodError: allocator undefined for Float
        from (irb):2:in `clone'
        from (irb):2

Just wondering if these could be made the same.


David

-- 
David A. Black
dblack@wobblini.net


In This Thread

Prev Next