Version française
Home     About     Download     Resources     Contact us    
Browse thread
Initialising caml values from C
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Jonathan Roewen <jonathan.roewen@g...>
Subject: Re: [Caml-list] Initialising caml values from C
> I don't quite understand your problem.
> 
> 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 = get_lfb_height () (* where that is an external function *)

Basically, I want to avoid creating global refs, especially to more
complex structures.