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

Re: [Xotcl] Initialisation arguments

From: Gustaf Neumann <neumann_at_wu-wien.ac.at>
Date: Tue, 24 Oct 2006 15:01:53 +0200

Kristoffer Lawson schrieb:
>> configure gets all arguments, including the values passed to init.
>> Use the one-liner of my last mail, and you
>> will see that this works for your example as well. if you pass the
>> saved values to object creation, you achieve
>> both, configuring the attributes and calling the constuctor with the
>> saved values.
>
> OK, thanks, this is working for me at the moment.
you can certainly provide an instmixin for "init" instead of
"configure", if you are only interested in the arguments passed
to the constructor. However, in the general case, doing it on
"configure" is better.

-gustaf neumann