From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.1.3 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 1B983BC0A for ; Fri, 16 Feb 2007 16:08:15 +0100 (CET) Received: from mail22.bluewin.ch (mail22.bluewin.ch [195.186.19.66]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l1GF8EiU015426 for ; Fri, 16 Feb 2007 16:08:14 +0100 Received: from [10.0.1.2] (85.2.30.249) by mail22.bluewin.ch (Bluewin 7.3.121) id 45C322AE00337295; Fri, 16 Feb 2007 15:08:14 +0000 In-Reply-To: <45D5C3AD.2000606@laposte.net> References: <45D5C3AD.2000606@laposte.net> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Message-Id: <98085E4A-B42B-4570-90DC-842ABA89F5D6@epfl.ch> Cc: caml-list@inria.fr Content-Transfer-Encoding: quoted-printable From: =?ISO-8859-1?Q?Daniel_B=FCnzli?= Subject: Re: [Caml-list] CAMLreturn does not work for floats between 0 and 1 ? Date: Fri, 16 Feb 2007 16:09:59 +0100 To: matthieu.dubuget@laposte.net X-Mailer: Apple Mail (2.752.2) X-Miltered: at concorde with ID 45D5C8DE.001 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; bunzli:01 buenzli:01 camlreturn:01 matthieu:01 dubuget:01 camlreturn:01 camlparam:01 ocaml:01 ocaml:01 46,:98 caml-list:01 functions:01 functions:01 macros:01 epfl:02 Le 16 f=E9vr. 07 =E0 15:46, Matthieu Dubuget a =E9crit : > I'm sure I'm doing something bad. But I can't find out where? CAMLreturn and CAMLparam0 macros are used in functions that are =20 called from ocaml land and return a value in ocaml land. You should =20 not use them for your functions called in C land and returning a =20 value in C land (see section 18.7.2 of the manual). Best, Daniel