Sorry, I don't have The Book handy...

Is there or is there not a for-modifier?

This works for me:

  i=0
  (puts "Hi"; i+=1) while i < 4

This doesn't:

  puts "Hi" for i in 1..4

I'm probably being dense.

Thanks,
Hal

--
Hal Fulton


Sent via Deja.com
http://www.deja.com/