[238] 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 (Tue May 17 00:10:12 1994 )

Date: Mon, 16 May 1994 22:06:04 -0600 (MDT)
From: the Lyncx <BRANDON@cc.usu.edu>
To: coldstuff@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.

Alright, somebody (even Greg) has the same POV as me.

SamIAm's suggestion would be to have a connection(), which returns your
connection object, and to let you find user from there...