[Xotcl] Initialisation arguments

Gustaf Neumann neumann at wu-wien.ac.at
Tue Oct 24 15:01:53 CEST 2006


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



More information about the Xotcl mailing list