[237] in Coldmud discussion meeting

root meeting help first first in chain previous in chain previous next next in chain last in chain last

Re: Finding out the call stack in ColdMUD

daemon@ATHENA.MIT.EDU (Mon May 16 23:48:54 1994 )

To: "John P. Landahl III" <jpl3@access.digex.net>
Cc: coldstuff@MIT.EDU
In-Reply-To: Your message of Mon, 16 May 94 23:29:32 -0400.
             <Pine.3.89.9405162333.A3274-0100000@access2.digex.net> 
Date: Mon, 16 May 94 23:43:58 EDT
From: Greg Hudson <ghudson@MIT.EDU>


> I want something like MOO's 'callers()' or 'player' in ColdMUD.  Is
> this possible?  sender() only gives you the info from one level
> back.  I need to know who or what is ultimately responsible for
> calling the current method.  I'm trying to write a parser that can
> call the user's .match_environment() so that all parsing is done by
> one method call.  But sender() is useless beyond the first call, and
> I can't find anything else that would do it.  Any ideas?

This is tantamount to accessing global state, and is a poor design.
If you need this information, pass it in as an argument.

--GBH