
28 Jul
2001
28 Jul
'01
1:25 a.m.
On 27-Jul-2001, Ashley Yakeley
Two questions on module ST: http://www.haskell.org/ghc/docs/latest/set/sec-st.html
1. What's the 's' parameter for?
It makes sure you don't try to use a reference obtained from one state thread in a different state thread.
2. Do STRefs get garbage-collected once they're forgotten?
In any decent implementation, yes.
--
Fergus Henderson