Ruby puzzle

def a
begin

rescue Exception => e
puts “a: rescued #{e}”
else
puts “a: no exception”
ensure
puts “a: ensure”
end
end

What should be in place of “…” so that method outputs only “a:
ensure”? Messing with STDIN does not count. This is not a joke, but a
real ruby feature.

Nice tip Oleg. Sounds like you had a tricky bug :slight_smile:

Same question to have no output?

Le lundi 12 octobre 2009 à 03:22 -0700, Oleg A. a écrit :

return

2009/10/12 Alexis B. [email protected]: