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
[Caml-list] Allocating a caml string in 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: [Caml-list] Allocating a caml string in C...

I was wondering if it's safe to allocate a caml string in C -before-
the runtime is initialised.

IE: something like the following:

value version;
void main() {
  version = caml_copy_string(DST_VERSION);
  /* startup the system! */

Of course, this example is pretty silly, but a more complex example
does exist ;-)