From: Joel VanderWerf Date: 2008-08-29T06:26:43+09:00 Subject: Re: Subtle bug with catch/throw. Am I missing something? John Pritchard-williams wrote: > Patrick Li wrote: >> Thanks for your responses. >> >> I think I understand now. I was just using the catch as a lazy way to >> break out of the loop. I can just use a loop flag instead then. >> >> I still don't know why the "puts" statement avoids the error. The "do" >> after the "while" doesn't help either. > > Patrick, > > Again total guesswork , but based on the other posts from people who > actually know what they are talking about... - sounds like the symbol > ':exit' is possibly out-of-scope by the time the 'throw' is executed. Symbols are literal values, so they are not affected by scope. -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407