View · Search · Index
No registered users in community xowiki
in last 10 minutes

Re: [Xotcl] Initialisation arguments

From: Kristoffer Lawson <>
Date: Sat, 21 Oct 2006 00:32:37 +0300

On 20 Oct 2006, at 23:11, Gustaf Neumann wrote:

> Per default, the slot objects are created as child objects of the
> class. That means, if
> someone serializes the class as well, the default values are kept
> as well in the serialized
> state.

I don't mean the state of the object at time of calling, in the sense
of slots, but the values passed to the constructor on object
creation. The args to 'init'. The reason for this is that it might
not be enough to just create the object with the appropriate state,
but it might need to go through the 'init' stage as well, so the
proper initialisation chain is done (f.ex. might be calls to other
things taking place there, registration with managers etc). After
that, slots can be set.