From: "Hal E. Fulton" Date: 2003-03-25T16:18:31+09:00 Subject: Re: exiting a loop ----- Original Message ----- From: "Gavin Sinclair" To: "ruby-talk ML" Sent: Tuesday, March 25, 2003 12:58 AM Subject: Re: exiting a loop > > What's wrong with a simple 'break'? :) > > > To swat a fly, use a flyswatter. > > > catch(:finished) do > while cond1 > while cond2 > while cond3 > while cond4 > ..... > while cond99 > throw :finished if cond100 > end > ..... > end > end > end > end > end Point taken, Gavin. :) But his example showed one simple loop. It seemed from context that he didn't know about break. Catch/throw is nice, but he does need to know about break. Hal