Mon, 8 Jul 2002 21:29:53 +0900, ts <decoux / moulon.inra.fr> pisze:

>  Something like this ?
> 
>    j = 6
>    catch(:out) do
>       for i in 1..10 
>          throw :out if i == j
>       end
>       puts "after"
>    end

For me it's lexically scoped, i.e. something like:

   callcc do |out|
      for i in 1..10
         out.call if i == j
      end
      puts "after"
   end

-- 
  __("<      Marcin Kowalczyk
  \__/     qrczak / knm.org.pl
   ^^    http://qrnik.knm.org.pl/~qrczak/