From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id PAA10122; Tue, 16 Apr 2002 15:39:48 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id PAA04147 for ; Tue, 16 Apr 2002 15:39:47 +0200 (MET DST) Received: from tcs.inf.tu-dresden.de (tcs.inf.tu-dresden.de [141.76.75.101]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g3GDdl515886 for ; Tue, 16 Apr 2002 15:39:47 +0200 (MET DST) Received: from ithif51 (ithif51 [141.76.75.51]) by tcs.inf.tu-dresden.de (8.12.0.Beta7/8.12.0.Beta7) with ESMTP id g3GDdkIr009405; Tue, 16 Apr 2002 15:39:46 +0200 (MET DST) Received: from tews by ithif51 with local (Exim 3.12 #1 (Debian)) id 16xTBR-0001LP-00; Tue, 16 Apr 2002 15:39:45 +0200 From: Hendrik Tews MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15548.10657.905007.234078@gargle.gargle.HOWL> Date: Tue, 16 Apr 2002 15:39:45 +0200 (CEST) To: "Warp" Cc: "OCaml" Subject: Re: [Caml-list] Cross Modules In-Reply-To: <001b01c1e538$d9e50a00$3900a8c0@warp> References: <001b01c1e538$d9e50a00$3900a8c0@warp> X-Mailer: VM 6.75 under Emacs 20.7.2 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Warp writes: Date: Tue, 16 Apr 2002 13:21:27 +0200 Subject: [Caml-list] Cross Modules [...] But if for example A call a function of B which returns a type declared in A interface, then you have to call "ocamlc b.cmo a.cmo" and it'll works. See problem report #562 for a related issue (at http://caml.inria.fr/bin/caml-bugs/not%20a%20bug?id=562;expression=tews;user=guest). I think the moral is that you should accept ocamldep's output as official. If you get a.cmo : b.cmi b.cmo : a.cmi then the modules are circular and you should raise an error. Bye, Hendrik ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners