[239] 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:23:31 1994 )

Date: Tue, 17 May 1994 00:19:03 -0400 (EDT)
From: "John P. Landahl III" <jpl3@access.digex.net>
To: coldstuff@MIT.EDU
In-Reply-To: <01HCF7YF4FBMBG68WO@cc.usu.edu>

On Mon, 16 May 1994, the Lyncx wrote:

> <> 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
> <
> < This is tantamount to accessing global state, and is a poor design.
> < If you need this information, pass it in as an argument.
> SamIAm's suggestion would be to have a connection(), which returns your
> connection object, and to let you find user from there...

That would probably be fine for what I want to do, but I don't see why being 
able to get the call stack is "poor design".  Someone whack me with a 
kyosaku and enlighten me.