[#1263] Draft of the updated Ruby FAQ — Dave Thomas <Dave@...>

33 messages 2000/02/08

[#1376] Re: Scripting versus programming — Andrew Hunt <andy@...>

Conrad writes:

13 messages 2000/02/15

[#1508] Ruby/GTK and the mainloop — Ian Main <imain@...>

17 messages 2000/02/19
[#1544] Re: Ruby/GTK and the mainloop — Yasushi Shoji <yashi@...> 2000/02/23

Hello Ian,

[#1550] Re: Ruby/GTK and the mainloop — Ian Main <imain@...> 2000/02/23

On Wed, Feb 23, 2000 at 02:56:10AM -0500, Yasushi Shoji wrote:

[#1516] Ruby: PLEASE use comp.lang.misc for all Ruby programming/technical questions/discussions!!!! — "Conrad Schneiker" <schneiker@...>

((FYI: This was sent to the Ruby mail list.))

10 messages 2000/02/19

[#1569] Re: Ruby: constructors, new and initialise — Yukihiro Matsumoto <matz@...>

The following message is a courtesy copy of an article

12 messages 2000/02/25

[ruby-talk:01278] Re: Draft of the updated Ruby FAQ

From: Clemens Hintze <clemens.hintze@...>
Date: 2000-02-09 15:57:37 UTC
List: ruby-talk #1278
Dave Thomas writes:
> Clemens Hintze <clemens.hintze@alcatel.de> writes:
> 

...

> I _could_, but why is this different to saying that they're not
> consumed by yield:
> 
>    def iter
>      yield 1
>      yield 2
>    end
> 
> is really no different to
> 
>    def iter
>      proc.call
>      proc.call
>    end
> 

Ahem! Internally there is a difference! But because we will take it
from the user's point-of-view there is no difference ;-)

> Or am I missing something here?

No! But perhaps it is my non-native speaker feeling :-} I would
describe 'yield' as command to execute a given block. Three 'yield's
would mean for me, execute a given block three times. Furthermore the
result of 'yield' is the result of the block!

But I would, however, describe 'proc' as *taking* a block and convert
it into a Proc instance. So of I have taken and/or converted the block
where is it now? So three 'proc's would try to convert three blocks
for me. The result of a 'proc' would be the block converted to a Proc
instance.

I admit perhaps it is a non-issue. Probably it's only me, who can fall
into that trap! :-/

...

> 
> Thanks again.
> 
> 
> Dave
> 

Thank you,
\cle

In This Thread