Revert a CAF?

John Meacham john at repetae.net
Tue Dec 6 23:14:12 CET 2011


Can you use a weak pointer to do what you want?
If you keep a weak pointer to the head of your expensive list then
itwill be reclaimed at the next major GC I believe. I have used
weakpointers for vaugely similar purposes before.
I guess a downside is that they will always be reclaimed on GC even
ifthere isn't memory pressure, I think.

   John
(resent, accidentally sent to wrong address first)



More information about the Glasgow-haskell-users mailing list