T
ts
Z> I don't quite understand all this distinction between Proc and proc and the
Z> 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
Z> 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
Z> 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
Z> 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