From: Christian Neukirchen Date: 2005-05-19T23:35:56+09:00 Subject: Re: syntax sugar: treating an object like a method Eric Mahurin 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 http://chneukirchen.org