[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Float#clone

Tobias Peters

9/26/2003 11:16:00 AM

I know Float instances are immutable and there is rarely a cause to want
to clone them, but this is odd:

irb(main):001:0> 1.3.clone
NoMethodError: allocator undefined for Float
from (irb):1:in `clone'
from (irb):1

I'd prefer if Float#clone instead really did the cloning.

Tobias