Hi --

On Sun, 6 Mar 2005, Minero Aoki wrote:

> [ruby-dev:25780] Proc generation without `proc'
>
>  Nobuyoshi Nakada posted a patch to allow generating Proc object
>  without `proc' or `lambda' shortly.  e.g.
>
>    x = {|a| p a }        # == proc {|a| p a }
>    x.call
>
>    x = (do |a| p a end)  # == proc do |a| p a end
>    x.call
>
>  This experimental patch was incorporated in to CVS HEAD.

Wouldn't this require empty || for blocks that don't take arguments?
For example:

    x = {|| puts "hello" }


David

-- 
David A. Black
dblack / wobblini.net