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 NAA29581; Sat, 12 Oct 2002 13:52:33 +0200 (MET DST) 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 NAA29348 for ; Sat, 12 Oct 2002 13:52:32 +0200 (MET DST) X-SPAM-Warning: Sending machine is listed in blackholes.five-ten-sg.com Received: from mail.fltrp.com ([211.101.185.130]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g9CBqU526028 for ; Sat, 12 Oct 2002 13:52:30 +0200 (MET DST) Received: from fltrp.com [129.0.5.6] by mail.fltrp.com with ESMTP (SMTPD32-7.13) id AC5C5B00C2; Sat, 12 Oct 2002 19:49:48 +0800 Message-ID: <3DA80C9F.1050401@fltrp.com> Date: Sat, 12 Oct 2002 19:50:55 +0800 From: Yang Shouxun User-Agent: Mozilla/5.0 (X11; U; Linux i686; zh-CN; rv:1.1) Gecko/20020913 Debian/1.1-1 X-Accept-Language: en-us, zh-cn MIME-Version: 1.0 To: caml-list@inria.fr Subject: Re: [Caml-list] automatic extraction of mli file? References: <3DA8021B.3050102@fltrp.com> <005701c271e3$30eb3130$55203151@warp> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Nicolas Cannasse wrote: >>What I'm wondering is "wouldn't it be preferrable to automatically >>produce the interface file from the implementation file?", so that we >>can program in the literate programming style, do prototyping, and save >>the drudgery of writing the interface (though a little manual editing >>may be necessary, or some kind of markup in the source code). > The "-i" ocamlc compiler flag is what you need. This seems to be not what I mean. OK, that is what I asked :(. All the comments will be removed. That is not desirable, for the mli file is meant to be read by both machine and humans. The humans need the comments to make sense of the interface file, without reference to the implementation code. I guess an extension to the ocamlweb is what I mean. Best! shouxun ------------------- 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