----- Original Message ----- From: "ts" <decoux / moulon.inra.fr> To: "ruby-talk ML" <ruby-talk / ruby-lang.org> Cc: <ruby-talk / ruby-lang.org> Sent: Saturday, June 22, 2002 10:52 AM Subject: Re: What do you think of this idiom? > there is a stupid way to write it, without rescue > > begin > print prompt > str = gets.chomp > end until yield(str) or puts error More and more interesting. I'd never have thought of that. Thanks, Hal Fulton