Version française
Home     About     Download     Resources     Contact us    
Browse thread
Re: [Caml-list] finalizing bigarrays
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Fernando Alegre <fernando@c...>
Subject: Re: [Caml-list] finalizing bigarrays

Can Gc.finalise be used with externally allocated bigarrays?

I thought it worked only for Caml-allocated types.

Am I wrong?

Fernando

On Mon, Jul 08, 2002 at 04:48:19PM +0200, Damien Doligez wrote:
> >From: Olivier Andrieu <andrieu@ijm.jussieu.fr>
> 
> >How about defining
> >  external finalise_my_bigarray : ('a, 'b, 'c) Bigarray.Genarray.t -> unit
> >and then using
> >  Gc.finalise ?
> 
> Watch out !  Gc.finalise is buggy in 3.04.  Before you use it, wait
> for 3.05, or use the CVS version of O'Caml, or ask me for a patch.
> 
> -- Damien

-- 
					
			-Fernando Alegre (fernando@cc.gatech.edu)
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners