On 2009-07-30, at 15:09, Abdulaziz Ghuloum wrote:
Maybe a gc hook should return a value indicating whether it should stay or be uninstalled. That way, we'd only need a way to *add* hooks (thus, the interface won't be in the form of a parameter), and the hooks themselves would be responsible for uninstalling themselves, if ever.
It certainly sounds fine with me, though to be honest perhaps less simple than the way you have it currently. I'm still confused about the extent of values created by an uninstalled library. Presumably, they can persist after the library is uninstalled. This might mean that a hook can veto a library being uninstalled. That sounds a bit scary to me.
How does that sound?
I can certainly live with it, and I can see why it might be a good idea. -- v
