From: Logan Capaldo Date: 2005-12-10T05:31:16+09:00 Subject: Re: new to Ruby - pls help in translating this --Apple-Mail-4--913240869 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed On Dec 9, 2005, at 2:24 PM, JB Eriksson wrote: > well, there is the succ method. and there's a succ! on String, > which could > work in this case, I guess(?), since: > > irb(main):023:0> a = "9" > => "9" > irb(main):024:0> a.succ! > => "10" Well, if it was a string. The problem is fixnums are immediate values. ++ would therefore be an operation on the variable a, rather than the object that a points at. --Apple-Mail-4--913240869--