post inc problem

  • Thread starter Sebestyén Gábor
  • Start date
M

Malte Milatz

furufuru:
Yes. I think these are the reasons why Ruby people have adopted the
"illusion" (no derogatory meaning) or view that Fixnums are just
ordianary objects expect they are immutable.

You could also say that Numerics and Symbols are very special Ruby
objects, which is shown by the fact that their classes don't have a "new"
method.

If 1.object_id == 1.object_id returned false, Fixnums could in theory be
mutable.

Malte
 

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
473,774
Messages
2,569,599
Members
45,163
Latest member
Sasha15427
Top