From: Robert Klemme Date: 2009-12-04T22:25:36+09:00 Subject: Re: increment/decrement 2009/12/4 Mike Stok : > > On Dec 4, 2009, at 7:22 AM, Teodor Carstea wrote: > >> what is Ruby's style of increment/decrement? >> >> I mean like in C++ >> >> someVar++ >> or someVar-- > > Take a look at http://ruby-doc.org/docs/Newcomers/ruby.html#operators which includes "To increment a number, simply write x += 1T." Teodor, if you now start wondering why there is no i++ in Ruby please see the recent thread "Ruby doesn't implement x++ for Fixnum's because ???". http://groups.google.de/group/comp.lang.ruby/browse_frm/thread/c07525fb34aacd18/b83161b23e9e57d1?lnk=gst&q=increment#b83161b23e9e57d1 Cheers robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/