Tanaka Akira wrote:
> The argument of catch is optional in Ruby 1.9.
> 
>   catch {|tag|
>     throw tag
>   }
> 
> catch generates a unique tag if not given.

... and I see that even with an explicit tag, it doesn't have to be a 
symbol any more.

$ ruby19 -e "catch(Object.new) { }"
$ ruby -e "catch(Object.new) { }"
-e:1:in `catch': #<Object:0xb7e0adb4> is not a symbol (TypeError)
  from -e:1
-- 
Posted via http://www.ruby-forum.com/.