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
Re: Yet another question about the module system
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 1996-10-22 (14:30)
From: Jocelyn Serot <jserot@e...>
Subject: Re: Yet another question about the module system

Ok, i had my both thoughts cleared (thanks to you) and my pb
solved (thanks to F. Rouaix).
The solution seems to write an explicit module type in the
first file :
******* file **********
module type BAR = sig type t val x : t end
and to refer to this signature in the second file:
******* file foo.mli *********
open Bar
module type FOO = sig type t type p val y : t end
module Make(B:BAR) : (FOO with type t = B.t)

Thanks for your help.

Oh, and "pendant que j'y suis" as we say in french :-) i have
another question:

Is there a way to tell the ocamlopt native compiler to use a
given C compiler after it has been built and installed ? If not,
what is the configuration option to modify in order to specify
such a C compiler (which may be distinct from the compiler used
for building the caml tools) ?

	Jocelyn Serot

E-mail: (->29/11) ......................................
S-mail: LASMEA - URA 1793 CNRS, Universite Blaise Pascal, 63177 Aubiere cedex
Tel: (33) - Fax: (33) ...............................