English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
Controlling module loading order.
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2010-01-09 (08:22)
From: Stéphane Glondu <steph@g...>
Subject: Re: [Caml-list] Controlling module loading order.
Guillaume Yziquel a écrit :
> My question is: do I have to put a line like "module X = OCamlR" in
> quantmod.ml, [...]

Sounds good. But in case the compiler is too smart and discards this,
I'd rather export explicitly an initialization function (or some dummy
value to force the dependency order) in OCamlR and call it when needed.

> [...] is there a way to load OCamlR beforehand just by
> tweaking the build process, order of modules when linking, etc...

I wouldn't rely on this.