On 14 Aug 2005, at 12:40, Mark Volkmann wrote:

> The source file lib\ruby\1.8\drb\drb.rb defines the class DRbObject. I
> don't understand the initialize method. Why would I ever want to pass
> something other than nil for the first parameter? The comment above
> the initialize method says that is used to create a proxy/stub for a
> local object. Why would I want to do that?
>
> The typical way to use this is
>
> proxy = DRbObject.new(nil, url)

You can pass DRbObjects across the wire, so you could wrap a local  
object and pass the DRbObject across the wire to the other side.  If  
you look around in drb.rb you'll see several places where it is used.

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