From: Logan Capaldo Date: 2006-06-02T06:07:47+09:00 Subject: Re: How use Profiling, a Quick Guide. On Jun 1, 2006, at 4:55 PM, Dave Howell wrote: > Oh! So BOTH of Sam's examples were 'non-stupid' rewrites of the > initial code. I completely failed to recognize the 'for' loop as > being Ruby code in the first place. Does Ruby really have an ++ > operator? I missed that somehow. Damn. As embarrassingly > illustrated by the fact that I coded my own ".increment" operator > in the initial message instead of using it. Ruby does not have an increment operator (++). It does have #succ but that is not in place. as far as your increment goes: % cat increment.rb class Fixnum def increment self = self + 1 end end a = 1 a.increment % ruby increment.rb -:13: Can't change the value of self self = self + 1 ^