[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ 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... |
Hi,
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! */
caml_startup(args);
}
Of course, this example is pretty silly, but a more complex example
does exist ;-)
Jonathan