in Coldmud discussion meeting
Re: Finding out the call stack in ColdMUD
daemon@ATHENA.MIT.EDU (Mon May 16 23:48:54 1994
To: "John P. Landahl III" <firstname.lastname@example.org>
In-Reply-To: Your message of Mon, 16 May 94 23:29:32 -0400.
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.