[
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: | 2002-08-19 (13:42) |
From: | Vincent Barichard <barichar@i...> |
Subject: | [Caml-list] module managing question |
Hi, I have a question on the manage of modules files. I use the toplevel system to make some algorithms and then I compile them to get efficient executable file. Is it possible to have exactly the same files for the two stage. For example, in the ocaml toplevel, I load the two following files a.ml and b.ml with the #use command. In a file named a.ml, I have : module A = struct let f = function _ -> 0 end In a second file named b.ml, I have : module B = struct open A let g = f end Everything works well. But when I want to compile them, I have to put in comments the "(*module ? = struct*)" and the "(* end *)" to make it works. Is there another way to proceed ? Thanks Vincent Vincent Barichard Métaheuristiques et Optimisation Combinatoire Faculté des Sciences d'Angers Tel : 02 41 73 52 06 ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners