Convert yield to proc

I don't quite understand all this distinction between Proc and proc and the
like.

Well,

    def xx(&block)
    end

can be seen equivalent to

    def xx
       block = Proc.allocate if block_given?
    end

except that ruby has undef'ed Proc::allocate :slight_smile:

From what loop or iterator does exactly the `break' break out in the

x(&b) call, in ruby 1.9?

[ruby-core:2583] will give you more information

   http://blade.nagaokaut.ac.jp/ruby/ruby-core/2583

Guy Decoux