Robert Klemme
12/25/2008 9:40:00 AM
On 24.12.2008 16:21, Phlip wrote:
> Robert Klemme wrote:
>
>> No, for error handling you use "raise" and "rescue". Please pay close
>> attention to how "catch" and "throw" work, especially the fact that
>> you can use a second argument to "throw" to pass an object (presumably
>> the result of a calculation).
>
> Then just use return.
If it can be used that would definitively my first choice. Sometimes it
can't and in these - admittedly rather rare - circumstances you should
rather use catch throw than goto IMHO.
Cheers
robert
--
remember.guy do |as, often| as.you_can - without end