From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 F06D5BC48 for ; Wed, 20 Apr 2005 00:09:23 +0200 (CEST) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.204]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j3JM9Mh5009810 for ; Wed, 20 Apr 2005 00:09:23 +0200 Received: by rproxy.gmail.com with SMTP id a36so31450rnf for ; Tue, 19 Apr 2005 15:09:22 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=SMIU+ZkVrOOznDN/FZ3r+0nyE59IJTiHbjXxqqYBrDwDXrguWMVEwEzP6wIHKk/YPRjY1CaOthcXK77Hljd+0pNDh2PGBFOZfYwmP1Q1n31JaV90x9uagv4ZFhWztW1XS5ysKbJspL1oioDU4fVG9TU/jq1I03MmOCgLhnCwinU= Received: by 10.38.96.3 with SMTP id t3mr121988rnb; Tue, 19 Apr 2005 15:09:22 -0700 (PDT) Received: by 10.38.209.53 with HTTP; Tue, 19 Apr 2005 15:09:22 -0700 (PDT) Message-ID: Date: Wed, 20 Apr 2005 10:09:22 +1200 From: Jonathan Roewen Reply-To: Jonathan Roewen To: Olivier Andrieu Subject: Re: [Caml-list] Initialising caml values from C Cc: caml-list@yquem.inria.fr In-Reply-To: <20050419.113716.74731383.andrieu@ijm.jussieu.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20050419.113716.74731383.andrieu@ijm.jussieu.fr> X-Miltered: at nez-perce with ID 42658192.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 initialise:01 height:98 height:98 structures:01 caml:02 external:02 external:02 let:03 complex:04 refs:04 problem:05 problem:05 quite:06 basically:07 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_BY_IP autolearn=disabled version=3.0.2 X-Spam-Level: > I don't quite understand your problem. >=20 > Is it that the code (with Cairo) isn't working ? (and if yes, > what exactly isn't working ?) Yes, cairo doesn't draw anything if I try initialise the values that way. The problem is initialising the global values. They don't seem to work if initialising them requires calling an external function. like: let height =3D get_lfb_height () (* where that is an external function *) Basically, I want to avoid creating global refs, especially to more complex structures.