[Xotcl] Initialisation arguments
Kristoffer Lawson
setok at fishpool.com
Fri Oct 20 23:32:37 CEST 2006
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.
/ http://www.fishpool.com/~setok/
More information about the Xotcl
mailing list