Float#clone

T

Tobias Peters

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,135
Messages
2,570,783
Members
47,341
Latest member
hanifree

Latest Threads

Top