HP Wei wrote:
I am looking into the dynamically upgradable computer server
in page 731 of the CTM book.
(...)
Now, in a remote computer  xyz,  I fire up a Mozart session
and define NewTaskServer.

What is the next step for me at xyz to upgrade the TaskServer at
foo ?
  * get Upg  (through the ticket mechanism)
  * {Upg NewTaskServer#init}
is this all there is to it???   [ don't I need to copy the NewTaskServer.oz
                                            to the machine foo ? ]

NewTaskServer is a value. The call to Upg transparently sends that value to the server, and that value is all the server needs to upgrade itself.

I don't have the book close to me here. But NewTaskServer is probably a functor, isn't it? Remember that a functor is not a file but a *value*. The file that you compile actually gives a functor value, which is usually marshaled in a .ozf file.

Cheers,
raph

_________________________________________________________________________________
mozart-users mailing list                               
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users

Reply via email to