From: Joel VanderWerf Date: 2008-07-28T09:19:11+09:00 Subject: Re: problems with throw/catch (newbie) Joshua Ballanco wrote: > First, Ruby blocks don't work like Java iterators. That is, you can't > use 'catch' and 'throw' the way that you have. Second, it is good > programing practice to reserve 'throw's and 'catch'es for > honest-to-goodness errors (this isn't just Ruby specific either). There's nothing wrong with using catch/throw as a control flow construct, if you need it. For example: breaking out of nested loops. -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407