[Xotcl] getter
Krzysztof Frukacz
frukacz.krzysztof at gmail.com
Tue Jan 18 15:32:45 CET 2011
Hello,
I need an example of implementation of a getter.
I have an attribute in a class which now needs a customized getter.
Class A -slots {
Attribute attr -proc get {domain var} {
#how to get attr value here? if I do [my attr] I get recursive call.
$attr says that there is no such variable
}
}
Another question: should I use -proc get or -proc valuecmd? valuecmd
does seems to be not called at all.
Best Regards
--
Krzysztof Frukacz
More information about the Xotcl
mailing list