Forums | Admin

Discussion Forums: open-discussion

Start New Thread Start New Thread

 

By: Tom Copeland
RE: loop construct [ reply ]  
2004-09-23 13:32
Hm, you're right, that is nicer. I'll change the notes, thanks!

Tom

By: Brian Schroeder
loop construct [ reply ]  
2004-09-22 12:46
You wrote in your notes:

A do..while forever loop in C can be done like this in Ruby:

begin
# do stuff
end until !true

That can be done in a more rubyish way as:
loop do
# do stuff
end

Regards,

Brian
--
http://ruby.brian-schroeder.de