Re: TADS: Redirecting all verbs?
6 Jun 1995 06:01:44 GMT
In article <3r0pcq$9gf@subway.echonyc.com>,
Neil Demause <neild@echonyc.com> wrote:
>Dan Shiovitz (scythe@u.washington.edu) wrote:
>: I'd like to redirect all verbs used on object A to object B. Is there a
>: way to do this? It seems like dobjGen would be used here, but I can't quite
>: figure out how. Anyone?
>
>On a related note, I'd like to redirect certain verbs from a whole class
>of objects to another class of objects. Sort of like:
>
>lockItem:item
> doUnlock->self.mydoor
>;
>
>(Here anytime you tried to "unlock lock" it would redirect it to the
>appropriate door; the actual situation is more complicated but similar.)
Hmm. It's not possibly to merely do it as you described, or as
class lockItem: item
verDoUnlockWith(actor) = {}
doUnlockWith( actor, io ) =
{
self.mydoor.doUnlockWith(actor, io);
}
;
which I believe is equivalent to what you put?
--
------------------------------------------------+--------------
The Grim Reaper ** scythe@u.washington.edu |
Dan Shiovitz ** shiov@cs.washington.edu | Aude
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | Sapere
_Music of the Spheres_ : Coming Nov '95 |
------------------------------------------------+--------------