Hello, 2010/7/9 Gaspard Bucher <gasp...@teti.ch>: > From my understanding of the use of > caml_startup (or caml_main), this means that the caml runtime is > global.
Yes. > Is there a way to avoid: > > 1. global locking (or locking only during script recompilation) I don't think so. > 2. script level encapsulation I don't know. You might play with the C symbols and a bit a C pre-processing to generate several different OCaml runtimes that would be linked with you application. But, as far as I know, the OCaml runtime has not be designed to be included several times within the same application. Sincerely yours, david _______________________________________________ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list Archives: http://caml.inria.fr Beginner's list: http://groups.yahoo.com/group/ocaml_beginners Bug reports: http://caml.inria.fr/bin/caml-bugs