On 24.12.2008 07:36, Xx Xx wrote:
> Cant download from the link http://raa.ruby-lang.org/project/ruby-goto/
IMHO "goto" is the worst tool you can use. One of the alternatives is
catch and throw
catch :foo do
...
throw :foo
...
throw :foo, any_value_you_like
...
end
Another helpful construct is "case" which can be used in two forms
case value
when condition
...
else
end
case
when expression
...
else
end
If you give us more information about the problem you are trying to
solve we might be able to come up with better solutions.
Cheers
robert