[Home] [Groups] - Message: [Prev in Group] [Next in Group]

nu.kanga.list.mud-dev

8664: [MUD-Dev] Re: PDMud thread summary

[Full Header] [Plain Text]
From: "Adam J. Thornton" <adam@phoenix.Princeton.EDU>
Newsgroups: nu.kanga.list.mud-dev
Date: Mon, 26 Oct 1998 10:45:04 -0500
References: [1] [2] <-newest
Organization: Kanga.Nu
On Mon, Oct 26, 1998 at 12:18:19AM +0000, Jon A. Lambert wrote:
> Aye.  How about support for static variables and recursion.  We 
> haven't discussed module level variables (outside of functions).

Danger:

Static variables and threadsafety are difficult to mix.  I suggest we have
thread-specific data persistent across calls instead and insist that
all references to that data go through access functions.  Yes, it's less
convenient, but it will allow us to do multithreaded stuff with a lot less
gray hair.

Recursion, of course, we ought to have.  

Adam
--
adam@princeton.edu 
"There's a border to somewhere waiting, and a tank full of time." - J. Steinman