[Prev][Next][Index][Thread]

Re: Distributed objects vs. generic functions and multi-methods



on 17/10/01 2:43 pm, Jason Trenouth at jason.trenouth@globalgraphics.com
wrote:
 
> I think the question is: But to which server do you send the gf call, Dear
> Liza, Dear Liza?

You send the GF call to the GF: the GF is an object, so whichever machine
the GF object resides on receives the call. Think of every GF call as a call
to a single magical 'dispatch' method with the GF object always as the first
parameter. The local 'GF' may contain a proxy method that sends the method
call to the server, or it may just be a normal local method.
Eventually one of the methods will call a method on another machine. This
method may well be a slot accessor. Using the Proxy system, slot accessors
on proxy objects are virtual slots that send the value request to the
machine the object actually resides on.

There was an interesting series of articles on JavaWorld about a form of
object design where you (theoretically) never used accessors. Objects were
defined by behaviour (callable methods) rather than properties (data). This
might be an interesting model for a distributed system using GFs.

http://www.javaworld.com/javaworld/jw-07-1999/jw-07-toolbox.html

- Rob.



References: