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 JAA03616; Mon, 10 Feb 2003 09:47:12 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: (from xleroy@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id JAA03427 for caml-list@pauillac.inria.fr; Mon, 10 Feb 2003 09:47:11 +0100 (MET) 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 NAA16132 for ; Sun, 9 Feb 2003 13:09:07 +0100 (MET) Received: from ep09.kernel.pl (ep09.kernel.pl [212.87.11.162]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h19C96f20538 for ; Sun, 9 Feb 2003 13:09:06 +0100 (MET) Received: (qmail 999 invoked by uid 566); 9 Feb 2003 12:09:04 -0000 Date: Sun, 9 Feb 2003 13:08:25 +0100 From: Michal Moskal To: Chris Hecker , caml-list@inria.fr Subject: Re: [Caml-list] interface printing without generating object code? Message-ID: <20030209120825.GA3603@roke.freak> References: <200302060307.h1637Ru21003@plinky.bolt-action.com> <200302060307.h1637Ru21003@plinky.bolt-action.com> <4.3.2.7.2.20030207180803.03087ef8@localhost> <20030208220648.GA11010@cs.brown.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030208220648.GA11010@cs.brown.edu> User-Agent: Mutt/1.4i X-PGP-Fingerprint: CF89 1B14 11BE 1CC9 2CA3 7497 5E32 69B4 BC71 B4C2 X-AntiVirus: scanned for viruses by AMaViS 0.2.1 (http://amavis.org/) Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Sat, Feb 08, 2003 at 05:06:48PM -0500, Emmanuel Renieris wrote: > It does produce both files. I will second the request. Under linux, > (unix in general, I think) it is now impossible to do This depends on shell, not Linux or Unix. But of course under any reasonable shell foo.mli will be created before ocamlc is run. > ocamlc -c -i foo.ml > foo.mli > because when the compiler sees foo.ml, there is a foo.mli already, > but there is no accompanying .cmi. Couldn't you just: ocamlc -c -i foo.ml > foo.mli.tmp mv foo.mli.tmp foo.mli ? -- : Michal Moskal ::::: malekith/at/pld-linux.org : GCS {C,UL}++++$ a? !tv : PLD Linux ::::::: Wroclaw University, CS Dept : {E-,w}-- {b++,e}>+++ h ------------------- 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