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 UAA14940; Wed, 29 Oct 2003 20:32:35 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id UAA10598 for ; Wed, 29 Oct 2003 20:32:33 +0100 (MET) Received: from mail1.tpgi.com.au (mail.tpgi.com.au [203.12.160.57]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h9TJWV102984 for ; Wed, 29 Oct 2003 20:32:32 +0100 (MET) Received: from 203-213-127-53-syd-ts20-2600.tpgi.com.au (203-213-127-53-syd-ts20-2600.tpgi.com.au [203.213.127.53]) by mail1.tpgi.com.au (8.11.6/8.11.6) with ESMTP id h9TJWBd09780; Thu, 30 Oct 2003 06:32:13 +1100 Subject: Re: [Caml-list] non-exported functions From: skaller Reply-To: skaller@ozemail.com.au To: Dustin Sallings Cc: Jean-Baptiste Rouquier , caml-list@inria.fr In-Reply-To: References: <728D3F38-09A4-11D8-B9F5-000393CFE6B8@spy.net> <001701c39de9$0852a2c0$77804d8c@residence.enslyon.fr> Content-Type: text/plain Message-Id: <1067452277.2160.14.camel@pelican> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 (1.2.2-4) Date: 30 Oct 2003 05:31:17 +1100 Content-Transfer-Encoding: 7bit X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 ozemail:01 mli:01 ocamlc:01 foo:01 foo:01 mli:01 helper:01 ocamlc:01 functor:01 anyhow:01 command:98 command:98 manually:03 wrote:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Wed, 2003-10-29 at 18:52, Dustin Sallings wrote: > On Oct 28, 2003, at 10:50 PM, Jean-Baptiste Rouquier wrote: > > >> I kinda liked automatically generating my .mli, > > ocamlc -i foo.ml > foo.mli > > Right, like that. If I have to make a custom mli, I have to take this > out of my build system. :) That command is guarranteed to be useless in a build system. The generated interface is exactly the same as the one that is extracted from the compiled ml file anyhow. The -i command is only to get a text file for the purpose of subsequent manual editing. Mli files are ONLY needed when there's an actual constraint. Every ml file I write has a manually constructed mli file, because almost invariably I *do* have helper functions I dont wish to expose to clients. I sometime use ocamlc -i to get the interface generated by a functor application .. (is there another way to do that, its woefully crude ..) ------------------- 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