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 30E1CBB9C for ; Wed, 18 Jan 2006 20:18:19 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id k0IJIIY8021310 for ; Wed, 18 Jan 2006 20:18:18 +0100 Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id UAA21798 for ; Wed, 18 Jan 2006 20:18:18 +0100 (MET) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.191]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id k0IJIHTL021937 for ; Wed, 18 Jan 2006 20:18:17 +0100 Received: from [212.227.126.160] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1EzIoz-0007hP-00; Wed, 18 Jan 2006 20:18:17 +0100 Received: from [84.58.141.8] (helo=gate.lan.gerd-stolpmann.de) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 1EzIoz-0002ca-00; Wed, 18 Jan 2006 20:18:17 +0100 Received: from flakew.lan.gerd-stolpmann.de (flakew.lan.gerd-stolpmann.de [192.168.0.32]) by gate.lan.gerd-stolpmann.de (Postfix) with ESMTP id 3504AC0C5; Wed, 18 Jan 2006 20:18:17 +0100 (CET) Subject: Re: [Caml-list] C interface style question From: Gerd Stolpmann To: Thomas Fischbacher Cc: caml-list@inria.fr In-Reply-To: References: Content-Type: text/plain Date: Wed, 18 Jan 2006 20:18:16 +0100 Message-Id: <1137611897.11593.103.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.2.1.1 Content-Transfer-Encoding: 7bit X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:a6865a839c0178d9aa0ce41878507ea2 X-Miltered: at nez-perce with ID 43CE947A.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 43CE9479.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 gerd:01 stolpmann:01 ocaml:01 pointers:01 bool:01 o'caml:01 gerd:01 stolpmann:01 viktoriastr:01 64293:01 darmstadt:01 functions:01 int:01 telefon:02 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=FORGED_RCVD_HELO autolearn=disabled version=3.0.3 Am Mittwoch, den 18.01.2006, 19:28 +0100 schrieb Thomas Fischbacher: > value-type parameters to C functions exported to OCaml should be > registered with CAMLparamX(...). Does this hold in general, or is it > considered acceptable/appropriate to just ignore this for "immediate" > values that do not hold pointers, but, say, int, bool etc. values? If you don't allocate O'Caml memory you need not to register the parameters. Gerd -- ------------------------------------------------------------ Gerd Stolpmann * Viktoriastr. 45 * 64293 Darmstadt * Germany gerd@gerd-stolpmann.de http://www.gerd-stolpmann.de Telefon: 06151/153855 Telefax: 06151/997714 ------------------------------------------------------------