Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
* Modules mutuellement recursifs ?
@ 1997-11-18 10:41 Vyskocil Vladimir
  1997-11-18 13:52 ` Emmanuel Engel
  0 siblings, 1 reply; 2+ messages in thread
From: Vyskocil Vladimir @ 1997-11-18 10:41 UTC (permalink / raw)
  To: Caml list

Bonjour,

Est t'il possible de compiler des modules qui s'appelent mutuellement
en creant par exemple un module reunion ?

Soit

M1.ml :
let f x = if x = 0 then 0 else M2.g (x - 1)

M2.ml
let g x = if x = 0 then 1 else M1.f (x - 1)

Comment transformer ce petit exemple (en utilisant des foncteurs ?)
pour creer un module M qui donne acces aux fonctions M1.f et M2.g ?
(la solution triviale de tout mettre dans un seul fichier n'est pas
tres satisfaisante :)

				Merci par avance
 
-- 
Vyskocil Vladimir
vyskocil@math.unice.fr
http://pcmath65.unice.fr/~vyskocil
http://www.inria.fr/safir/WHOSWHO/Vladimir.html





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1997-11-18 13:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-11-18 10:41 Modules mutuellement recursifs ? Vyskocil Vladimir
1997-11-18 13:52 ` Emmanuel Engel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox