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

Re: [Xotcl] Incorrect behavior?

From: Stefan Sobernig <stefan.sobernig_at_wu.ac.at>
Date: Wed, 29 Jun 2011 12:51:46 +0200

Victor,

>> %Object create o
>> ::o
>> %o attribute {a oldvalue}
>> ::o::a
>> %o a
>> oldvalue
>> %o attribute {a newvalue}
>> ::o::a
>> %o a
>> oldvalue

Forgot to ask: Why do you take this path (changing the default of the
attribute slot) in the first place? If you want "a" to have the value
"newvalue" assigned, why don't you simply say:

o a newvalue

//s