Robert Dober wrote: > Bad design IMHO > catch/throw can be used perfectly save as follows > > class MyClass > > def thrown; @thrown ||= Object::new end > > def do_throw; throw( @thrown, 42) end > > def with_throw; catch( @thrown )do yield end end > > end > > > But it is still a good use case for Charley's idea !! The funny thing is that that's basically what the "downward" callcc support looks like inside JRuby; it's just holding a magic token that's invalidated once the continuation leaves that part of the stack. - Charlie