From: Michael Fellinger Date: 2005-12-10T06:19:30+09:00 Subject: Re: new to Ruby - pls help in translating this --nextPart1863028.yCRFmJ0X3y Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Am Freitag, 9. Dezember 2005 21:31 schrieb Logan Capaldo: > 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. well, there is a+=1 and a++ would be a+! imho... --nextPart1863028.yCRFmJ0X3y Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQBDmfTZMdQeL6eBxhIRAvNfAJ9YvmCs4OIvdvuyE8e1ys8+aYmB+wCguD1J TkP04eXhdBlkZs1Cg42dN1Q= =7lb8 -----END PGP SIGNATURE----- --nextPart1863028.yCRFmJ0X3y--