[#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

Re: Fixnum#clone and Float#clone raise different exceptions

From: "David A. Black" <dblack@...>
Date: 2004-11-16 12:12:30 UTC
List: ruby-core #3749
Hi --

Just replying to myself, in the hope of triggering response from Matz
and others....  This glitch is actually looming fairly large in
ActiveRecord's clone facility, which stumbles on Floats. 


On Sat, 13 Nov 2004, David A. Black wrote:

> 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