From: Cory Cory Date: 2008-03-03T23:10:09+09:00 Subject: Normal For Loop I'm new to Ruby. Is there such thing as a C++ style (and most others) for loop in Ruby? What I mean by that is: for( init, while-condition, increment ) { function-here } I know I can do that with a while loop, but I enjoy the compactness of the above statement. There are many times where Ruby's for-each loops just don't do the trick. Also, is there anything like i++ or do I always have to do i=i+1 ? -- Posted via http://www.ruby-forum.com/.