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 nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 2ECAFBB83 for ; Mon, 14 Aug 2006 09:04:18 +0200 (CEST) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.190]) by nez-perce.inria.fr (8.13.6/8.13.6) with ESMTP id k7E74HiD005603 for ; Mon, 14 Aug 2006 09:04:18 +0200 Received: by nf-out-0910.google.com with SMTP id o25so1505416nfa for ; Mon, 14 Aug 2006 00:04:17 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Vd4IntbZfkSHpmyqIcfKAmoBlBfg3VRStn2JYfev59Nj9Cljs16Zuv1cHboZ+eoPbeKjkBndB6w6EgGDiix3WZi68P55cqz6Uzqhy4qf9IQf6A4NO0D4fNidBEbySFwstGXEEnWLbkDdmKSnAlcV1UcorULxRmW/YEaStphaK4s= Received: by 10.78.142.14 with SMTP id p14mr3118313hud; Mon, 14 Aug 2006 00:04:17 -0700 (PDT) Received: by 10.78.194.4 with HTTP; Mon, 14 Aug 2006 00:04:16 -0700 (PDT) Message-ID: Date: Mon, 14 Aug 2006 19:04:17 +1200 From: "Jonathan Roewen" To: "Jacques Garrigue" Subject: Re: [Caml-list] question about how to bind c++ classes to ocaml Cc: micha-1@fantasymail.de, caml-list@yquem.inria.fr In-Reply-To: <20060814.092046.03363783.garrigue@math.nagoya-u.ac.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20060813224715.0769efc9@localhost> <20060814.092046.03363783.garrigue@math.nagoya-u.ac.jp> X-j-chkmail-Score: MSGID : 44E02071.000 on nez-perce : j-chkmail score : X : 0/20 1 X-Miltered: at nez-perce with ID 44E02071.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; ocaml:01 ocaml:01 annotation:01 caml-list:01 functions:01 external:02 string:02 beware:03 manual:06 allocate:06 classes:07 function:08 bind:08 doesn't:11 doesn't:11 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=RCVD_BY_IP autolearn=disabled version=3.0.3 > Calls from ocaml to C are very cheap. If your access function doesn't > do any allocation (i.e. never calls the GC), you can even make it > faster by marking it as "noalloc". Beware many functions do > allocate, including copy_double or copy_string. Is this a special annotation for the external keyword? A quick glance over the ocaml manual doesn't show up anything. Jonathan