[#1026] Is this a bug? — Dave Thomas <Dave@...>

18 messages 2000/01/03

[#1084] Infinite loop — Dave Thomas <Dave@...>

17 messages 2000/01/11

[#1104] The value of while... — Dave Thomas <Dave@...>

24 messages 2000/01/11

[ruby-talk:01199] Re: Question about 'open'

From: Dave Thomas <Dave@...>
Date: 2000-01-30 15:27:05 UTC
List: ruby-talk #1199
ts <decoux@moulon.inra.fr> writes:

> >>>>> "D" == Dave Thomas <Dave@thomases.com> writes:
> 
>  I'm not really sure, but the block is executed in the parent process.

D'accord! But I'm wondering why it is. The semantics of the open have
it returning a result to both the parent and the child. It can't do
that without executing the block, so shouldn't it be running the block 
in both places?

Regards


Dave


-- 
Thomas Consulting.
Innovative and successful developments with Unix, Java, C, and C++. 

Now in bookstores:
 The Pragmatic Programmer.  www.pragmaticprogrammer.com/ppbook/

In This Thread