Robert Hulme <robert.hulme / gmail.com> writes:

>> Well, then we should introduce ++ now.
> You don't have ++?
>
> I'm new to Ruby - so new that I haven't written anything yet... what
> is used for incrementing a variable then?

Without any hacks by Florian Gro?, you simply use `foo += 1'.

++foo is the same as +(+(foo)), which is foo.@+.@+.

> -- 
> ------------------------------------------------------
> "The day Microsoft makes a product that doesn't suck is the day they
> make a vacuum cleaner."
> http://www.robhulme.com/
> http://robhu.livejournal.com/
>

-- 
Christian Neukirchen  <chneukirchen / gmail.com>  http://kronavita.de/chris/