Re: More Finaliser Trouble

Fergus Henderson <[email protected]>
Newsgroups gmane.comp.lang.haskell.ffi
Message-ID <[email protected]>
On 13-Jul-2003, Wolfgang Thaller <[email protected]> wrote:
> Daan Leijen <[email protected]> wrote:
> 
> >(allthough it doesn't answer the question of  [...] how to add parameters 
> >to the new newForeignPtr function,)
> 
> Should there perhaps be something like ...
> 
> newForeignPtrWithUserData :: Ptr a -> Ptr b -> FunPtr (Ptr a -> Ptr b -> IO 
> ()) -> IO (ForeignPtr a)
> 
> ... where the second argument is a "userData" pointer that gets passed on 
> to the finalizer?

IMHO yes!

-- 
Fergus Henderson <[email protected]>  |  "I have always known that the pursuit
The University of Melbourne         |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.