[Haskell-cafe] Re: [Haskell] Re: Global Variables and IO
benjamin.franksen at bessy.de
Fri Nov 26 10:08:46 EST 2004
On Friday 26 November 2004 14:12, Benjamin Franksen wrote:
> I still can't see any reason why each single Haskell thread should have its
> own searate dictionary. Contrary, since it is common to use forkIO quite
> casually, and you expect your actions to do the same thing regardless of
> which thread calls them, this would be disastrous. IMO GlobalVariables.hs
> shouldn't be aware of threadIds at all.
I think I misunderstood your proposal (GlobalVariables.hs). It seems to do
what I would expect, if your version of forkIO is used. I thought by
inheriting the dictionary you meant working on a new copy, but it does in
fact mean using the same dictionary.
Sorry for the confusion.
More information about the Haskell-Cafe