On Tue, 20 Mar 2001  15:15:46 +0900, Dave Thomas wrote:
> 
> Just an observation (and I'm waiting for six people to quote previous
> ruby-talk articles to show they'd thought of this first):
> 
> When we get keyword arguments, a slight extension to the syntax will
> also allow us to pass multiple blocks to a method:
> 
>   def polar_plot(x, y)
>     0...n times do |i|
>        angle = i*TWO_PI/n
>        x_pos = x.call(angle)
>        y_pos = y.call(angle)
>        drawTo(x, y)
>     end
>   end
> 
>   polar_plot x: { |i| sin(i) }  y: {|i| i*i }

but we already can, e.g.:

def mcall(*fs)
  fs.each{ |f| f.call }
end

mcall lambda { p 1 }, lambda { p 2 }, lambda { p 3 }

	Michel