Eric Mahurin <eric_mahurin / yahoo.com> writes:

> Anybody know if lambdas will also support blocks anytime soon? 
> It doesn't seem to make sense why I can't do this:
>
> f = lambda {|*args,&block|puts(*args);block[]}
> f[1,2,3] { puts("hi") }
>
> or in the 1.9 syntax:
>
> f = {|*args,&block|puts(*args);block[]}
> f(1,2,3) { puts("hi") }
>
> I just grabbed 1.9 and none of this new syntax seems to work.

Blocks should be able to take blocks since 1.9.  I tried that not too
long ago.

-- 
Christian Neukirchen  <chneukirchen / gmail.com>  http://chneukirchen.org