On 12/07/2010 10:42 AM, Sylvain Le Gall wrote:
An option could be to ship a minimalistic main program, which simply
dynlinks .cmxs files given on its command line.


You mean like ld.ocaml:
https://forge.ocamlcore.org/projects/ld-ocaml/

Or just something like:

let () =
   try
     for i = 1 to Array.length Sys.argv - 1 do
       Dynlink.loadfile Sys.argv.(i)
     done
   with exn ->
     Format.eprintf "Uncaught exception: %...@." (Printexc.to_string exn)

(untested, and you probably want to print the stack trace as well)


-- Alain

_______________________________________________
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

Reply via email to