From: "David A. Black" Date: 2009-11-05T21:54:06+09:00 Subject: Re: Ruby doesn't implement x++ for Fixnum's because ??? Hi -- On Thu, 5 Nov 2009, Tony Arcieri wrote: > On Wed, Nov 4, 2009 at 2:41 PM, Marnen Laibow-Koser wrote: > >> What semantics do you intend here? I'm not sure I understand. >> > > You can think of it like: > > alias_method :++, :increment! But what would it mean to send the message increment! to, say, the object 10? In the same vein: >> 10.succ! NoMethodError: undefined method `succ!' for 10:Fixnum David -- The Ruby training with D. Black, G. Brown, J.McAnally Compleat Jan 22-23, 2010, Tampa, FL Rubyist http://www.thecompleatrubyist.com David A. Black/Ruby Power and Light, LLC (http://www.rubypal.com)