On Sun, 21 Sep 2003 11:29:27 -0700, dhtapp wrote:

> Hi,
> 
> I'm pretty new to Ruby, so someone may step in quickly to correct me.  But
> my understanding is that, for any of the standard dyadic operators (+, -,
> etc.) the shorthand
> 
> j += 1
> 
> is expanded before evaluation to:
> 
> j = j + 1

Not quite - I think j += 1 only evaluates j once.  I recall one instance
where that helped me, performance-wise.

-- 
Tom Felker, <tcfelker / mtco.com>
<http://vlevel.sourceforge.net> - Stop fiddling with the volume knob.

How long do we want to live in a world where profit is made by forcing the 
competition to reinvent the wheel?