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
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
>, [...]

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.