Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] module managing question
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Vincent Barichard <barichar@i...>
Subject: [Caml-list] module managing question

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 and with the #use command.

In a file named, I have :
module A = struct
	let f = function _ -> 0

In a second file named, I have :
module B = struct
	open A

	let g = f

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 ?



Vincent Barichard
Métaheuristiques et Optimisation Combinatoire
Faculté des Sciences d'Angers
Tel : 02 41 73 52 06
To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: