From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by yquem.inria.fr (Postfix) with ESMTP id A3D80BBAF for ; Sat, 9 Jan 2010 09:22:29 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AsgEAHfLR0teFxRU/2dsb2JhbACBRIIaw2WMaYErgi5WBA X-IronPort-AV: E=Sophos;i="4.49,247,1262559600"; d="scan'208";a="41320996" Received: from rps.up7.fr (HELO glyptal.glondu.net) ([94.23.20.84]) by mail3-smtp-sop.national.inria.fr with ESMTP; 09 Jan 2010 09:22:29 +0100 Received: from [10.198.42.2] (unknown [10.198.42.2]) by glyptal.glondu.net (Postfix) with ESMTP id E1D5B59DEA; Sat, 9 Jan 2010 09:22:25 +0100 (CET) Message-ID: <4B483CC1.3090505@glondu.net> Date: Sat, 09 Jan 2010 09:22:25 +0100 From: =?UTF-8?B?U3TDqXBoYW5lIEdsb25kdQ==?= User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20091109) MIME-Version: 1.0 To: guillaume.yziquel@citycable.ch Cc: OCaml List Subject: Re: [Caml-list] Controlling module loading order. References: <4B479BA3.6060300@citycable.ch> In-Reply-To: <4B479BA3.6060300@citycable.ch> X-Enigmail-Version: 0.95.0 OpenPGP: id=49881AD3 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam: no; 0.00; guillaume:01 compiler:01 tweaking:01 cheers:01 phane:98 steph:98 phane:98 caml-list:01 dependency:01 explicitly:02 modules:02 linking:02 module:03 module:03 loading:05 Guillaume Yziquel a =C3=A9crit : > My question is: do I have to put a line like "module X =3D 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. Cheers, --=20 St=C3=A9phane