Re: [Caml-list] Toplevel with camlp4

2009-03-26 Thread Andre Nathan
On Thu, 2009-03-26 at 22:15 -0400, Peng Zang wrote: > Are you using OCaml 3.10? I recall there's a bug that doesn't let you #use > more than once due to bad file descriptors. It's been fixed in 3.11 That was it. Thanks! Andre ___ Caml-list mailing l

Re: [Caml-list] Toplevel with camlp4

2009-03-26 Thread Peng Zang
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Are you using OCaml 3.10? I recall there's a bug that doesn't let you #use more than once due to bad file descriptors. It's been fixed in 3.11 Peng On Thursday 26 March 2009 09:59:20 pm Andre Nathan wrote: > Hello > > I have the simple program bel

[Caml-list] Toplevel with camlp4

2009-03-26 Thread Andre Nathan
Hello I have the simple program below: let () = Sys.interactive := false; Toploop.initialize_toplevel_env (); for i = 1 to (Array.length Sys.argv) - 1 do ignore (Toploop.use_file Format.std_formatter Sys.argv.(0)) done which works fine when compiled with $ ocamlc -o a