Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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: 2005-04-19 (22:09)
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.

let height = get_lfb_height () (* where that is an external function *)

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