On Oct 20, 2005, at 12:58 PM, Yohanes Santoso wrote:

> James Edward Gray II <james / grayproductions.net> writes:
>
>
>> On Oct 19, 2005, at 6:32 PM, Jeff Wood wrote:
>>
>>
>>> I know your question is/was about DRb but Roxy will do the block.
>>>
>>
>> Just to be clear, DRb *does* do the block.  I'm just trying to figure
>> out how...  ;)
>>
>> James Edward Gray II
>>
>
> The block stays with the the caller and the method on the remote
> object does a RPC call for each block invocation.
>
> remote_array.sort{|x| x}
>
> would cause at least #{remote_array.size} RPC calls from the remote
> process to the process where the block is declared.

Objects can be dumped or not dumped.

Blocks and Procs are objects.

Blocks and Procs are objects that cannot be dumped.

Any object that cannot be dumped is wrapped in a DRbObject and that  
DRbObject is sent to the remote end.

-- 
Eric Hodel - drbrain / segment7.net - http://segment7.net
FEC2 57F1 D465 EB15 5D6E  7C11 332A 551C 796C 9F04