Re: finalizers broken (4.08.2 & 5.00)

2001-05-26 Thread Marcin 'Qrczak' Kowalczyk
Fri, 25 May 2001 15:22:13 +0100, Simon Marlow <[EMAIL PROTECTED]> pisze: > It is only really safe to put finalizers on primitive indivisible > objects (which is why we have addForeignFinalizer, mkWeakIORef, > and now addMVarFinalizer). Shouldn't addMVarFinalizer be available through Concurrent i

RE: finalizers broken (4.08.2 & 5.00)

2001-05-25 Thread Simon Marlow
> Okay, I suppose I ain't telling any news here, *but* > *usually* people complained > about finalizers being never run. I just discovered that my > finalizers are run > *too* *early*, probably because of unsafe{Perform,Interleave}IO: > > Consider this fragment which will interleave two > list

finalizers broken (4.08.2 & 5.00)

2001-05-25 Thread Volker Stolz
Okay, I suppose I ain't telling any news here, *but* *usually* people complained about finalizers being never run. I just discovered that my finalizers are run *too* *early*, probably because of unsafe{Perform,Interleave}IO: Consider this fragment which will interleave two lists/streams (they're