andrewcoppin:
> Here's an interesting question... Is it possible to attach finalisers to 
> a value? (That is, have some Haskell code executed when the item in 
> question is reclaimed by the GC.) I'm interested in knowing whether a 
> particular data structure is shared (i.e., whether it's safe to mutate 
> it or whether it must be copied first), and a simple reference-counting 
> scheme looks like the easiest option.

Yes.
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to