From: Tony Arcieri Date: 2009-11-09T05:26:14+09:00 Subject: Re: Ruby doesn't implement x++ for Fixnum's because ??? --0016e64b04486495d00477e1e3c6 Content-Type: text/plain; charset=ISO-8859-1 On Sun, Nov 8, 2009 at 1:15 PM, Walton Hoops wrote: > Incorrect. In fact the very first message in this thread provided an > example of redifining Fixnum in such a way that it was mutable. > No it didn't, that post created a new class called "FixNum" And again, that's beside the point, which is to allow the expected "++" semantics for immutable Numerics while also allowing in-place incrementation for other classes which may store a mutable value, such as counters (whose backing store may be a database, memcache, etc) That would provide a truly Ruby-like ++ experience, aside from the fact you can't redefine #++ for a Numeric, which probably isn't a good idea anyway. -- Tony Arcieri Medioh/Nagravision --0016e64b04486495d00477e1e3c6--