From: Mark Hubbart Date: 2004-12-08T09:06:52+09:00 Subject: Re: Using yield On Wed, 8 Dec 2004 04:19:11 +0900, David A. Black wrote: > As for forwarding a block to a new method -- isn't &b the only way? > Or am I behind the times on automatic propagation? I forward blocks a lot in my own code, and wish there was a way to get around using the &block syntax. I suspect that someone else has probably suggested this already, but what about a &yield keyword? ie.: def thrice 3.times &yield end Assuming it would be optimized, and wouldn't create a Proc object, this could be a nicer way of forwarding a block. cheers, Mark