* [Caml-list] Allocating a caml string in C...
@ 2006-01-28 0:10 Jonathan Roewen
2006-02-01 15:12 ` Damien Doligez
0 siblings, 1 reply; 2+ messages in thread
From: Jonathan Roewen @ 2006-01-28 0:10 UTC (permalink / raw)
To: caml-list
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Caml-list] Allocating a caml string in C...
2006-01-28 0:10 [Caml-list] Allocating a caml string in C Jonathan Roewen
@ 2006-02-01 15:12 ` Damien Doligez
0 siblings, 0 replies; 2+ messages in thread
From: Damien Doligez @ 2006-02-01 15:12 UTC (permalink / raw)
To: caml-list
On Jan 28, 2006, at 01:10, Jonathan Roewen wrote:
> I was wondering if it's safe to allocate a caml string in C -before-
> the runtime is initialised.
No, it is not safe. As far as I can tell, it should crash immediately.
-- Damien
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-02-01 15:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-28 0:10 [Caml-list] Allocating a caml string in C Jonathan Roewen
2006-02-01 15:12 ` Damien Doligez
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox