MOO-cows Mailing List Archive
[Prev][Next][Index][Thread]
Re: Changing parents & dynamic properties
On Mon, 22 Jan 1996, PILOSOF AVI wrote:
> However, now when I use some of the property-changing verbs on the test
> room, the properties change on ALL the rooms. I thought that a child object
> was a whole new copy of the object, and had separate (altho identical)
> properties.
If the property on the parent has the 'c'lear permission set, its
behavior is different.
The parent gets a value for the property, and the children only
get placeholders which say, if you want to read this property, go to my
parent and read it from him.
So, when you read from the child, you are actually getting the
value as set on the parent. When you write to the child, you are
replacing the placeholder with the value you wrote in and the child will
no longer echo changes of the parent's value.
To illustrate, say, #10 is derived from #1 and #1 has a +c property named
fred:
;#1.fred=0;
=> 0
;#10.fred
=> 0
;#1.fred=2;
=> 2
;#10.fred
=> 2
;#10.fred=1;
=> 1
;#10.fred
=> 1
;#1.fred=3;
=> 3
;#10.fred
=> 1
Acroyear and his sidekick Stephan Szabo
Ex-King of Spartak Expired Bovine
Member of the Micronauts Theologist
References:
Home |
Subject Index |
Thread Index