From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 1FC74BB81 for ; Fri, 23 Sep 2005 09:54:23 +0200 (CEST) Received: from [128.93.8.130] (macadam.inria.fr [128.93.8.130]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j8N7sMrf031993 for ; Fri, 23 Sep 2005 09:54:22 +0200 Mime-Version: 1.0 (Apple Message framework v734) In-Reply-To: <4a708d205092211334a58abfa@mail.gmail.com> References: <87y85pgxhh.fsf@gmx.de> <4a708d205092211334a58abfa@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <2836DE17-2CB1-4A1D-B408-534687B71F87@inria.fr> Content-Transfer-Encoding: 7bit From: Damien Doligez Subject: Re: [Caml-list] Re: Ocaml C interface - Usage of custom blocks Date: Fri, 23 Sep 2005 09:54:31 +0200 To: caml-list X-Mailer: Apple Mail (2.734) X-Miltered: at concorde with ID 4333B4AE.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; damien:01 damien:01 caml-list:01 ocaml:01 lukasz:01 dominik:01 ocaml:01 malloc:01 2005,:98 wrote:01 doligez:01 doligez:01 data:02 allocated:03 sep:05 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.3 On Sep 22, 2005, at 20:33, Lukasz Stafiniak wrote: > 2005/9/22, Dominik Brugger : > >> Is there a "best practice" for returning C data to OCaml >> which was allocated by malloc? > > My bet is on custom blocks. Here is the official word from the OCaml team: custom blocks are the way to go. Have a nice day, -- Damien