From: Robert Klemme Date: 2008-07-28T20:57:36+09:00 Subject: Re: problems with throw/catch (newbie) 2008/7/28 Dave Bass : > Joshua Ballanco wrote: >> Yes, that's right, 'goto' can be useful. > > Every processor instruction set I've seen has an unconditional jump > opcode or equivalent. E.g. x86 assembler uses JMP. If it's there we > should us it. ;-) Sorry, but this is ridiculous. Assembler and Ruby are two completely different pairs of shoes. In this case "return" or "break" are far more appropriate IMHO. throw / catch would also work (module caveats that have been mentioned) but I always feel reluctant about using those when they are not needed since they resemble exceptions too closely. Cheers robert -- use.inject do |as, often| as.you_can - without end