MOO-cows Mailing List Archive
[email@example.com: Re: parents and locking, listening etc]
------- Start of forwarded message -------
Date: Mon, 10 Mar 1997 05:46:40 PST
From: Chris Williams <firstname.lastname@example.org>
X-Mailer: Mozilla 4.0b2 (WinNT; I)
To: email@example.com, Moo Cows <firstname.lastname@example.org>
Subject: Re: parents and locking, listening etc
X-Priority: 3 (Normal)
Content-Type: text/plain; charset=us-ascii
Resent-From: clue-cows <email@example.com>
Errors-To: clue-cows <firstname.lastname@example.org>
> @lock exit with !<parent(#myparent)> ???
There's no builtin way to do that, however $lock_utils can be modified
to lock for all kids of an object, I remember coding that a while ago.
I'll see if I can find it, although I think it may be on the MOO where
the idiot ArchWiz has turned all the rest of us $wiz's into $builders..
As I recall, I just added another unary operator like ! (I think I used
K, for kids), and added it to the big elseif in the main lock-checking
verb. And the parsing ones. Mainly, if you look at how it does !, you
can do pretty much the same thing with any unary operator. PArsing is
the same thing exactly (if fact, I think there you may just hafta add it
to a list of them), the lock-checking is basicly the same, you've just
got to do an $object_utils:isa check instead of a != check.
- -----BEGIN GEEK CODE BLOCK-----
GCS/CM/IT/M/S d-- s+: a15 C++++$ UL+ P L-- E? W++(+++) N+ o? K? w++++@
O--- M-- V- PS++ PE- Y+ PGP- t+ 5++ X+ R+ tv+ b++ DI+++ D+
G++ e* h! r y-
- ------END GEEK CODE BLOCK------
------- End of forwarded message -------
Subject Index |