[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: Ruby 1.9 : What is the use for Proc#yield

Yukihiro Matsumoto

6/24/2007 2:53:00 PM

Hi,

In message "Re: Ruby 1.9 : What is the use for Proc#yield"
on Sun, 24 Jun 2007 07:12:20 +0900, "Gregory Brown" <gregory.t.brown@gmail.com> writes:

|I'm reading through Mauricio's list of changes[0] to Ruby 1.9 and
|having trouble with understanding the point of Proc#yield

It's mere alias to call, just to describe the intention to invoke it
as a block passed.

matz.

1 Answer

Gregory Brown

6/24/2007 3:35:00 PM

0

On 6/24/07, Yukihiro Matsumoto <matz@ruby-lang.org> wrote:
> Hi,
>
> In message "Re: Ruby 1.9 : What is the use for Proc#yield"
> on Sun, 24 Jun 2007 07:12:20 +0900, "Gregory Brown" <gregory.t.brown@gmail.com> writes:
>
> |I'm reading through Mauricio's list of changes[0] to Ruby 1.9 and
> |having trouble with understanding the point of Proc#yield
>
> It's mere alias to call, just to describe the intention to invoke it
> as a block passed.

Thanks for clarifying this.

-greg