[opensuse-ruby] Don't confuse raise+rescue with throw+catch.
First post11! Just a reminder, I have just fixed a bug: http://git.opensuse.org/?p=projects/yast/web-client.git;a=commitdiff;h=6412a... To illustrate how it bites, the attached program does this $ ruby snippets/throw-rescue.rb Doing it right I have rescued Ouch! Doing it wrong I have rescued Exception is not a symbol -- Martin Vidner, YaST developer http://en.opensuse.org/User:Mvidner Kuracke oddeleni v restauraci je jako fekalni oddeleni v bazenu
Martin Vidner napsal(a):
First post11!
Just a reminder, I have just fixed a bug: http://git.opensuse.org/?p=projects/yast/web-client.git;a=commitdiff;h=6412a...
To illustrate how it bites, the attached program does this $ ruby snippets/throw-rescue.rb Doing it right I have rescued Ouch! Doing it wrong I have rescued Exception is not a symbol
Yes, it is often my problem. I programmed too much in java and sometime mistake. Stupid is that throw is Kernel function and it is not easy to find it. -- To unsubscribe, e-mail: opensuse-ruby+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-ruby+help@opensuse.org
participants (2)
-
josef reidinger
-
Martin Vidner