English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[Caml-list] interface printing without generating object code?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2003-02-10 (08:47)
From: Michal Moskal <malekith@p...>
Subject: Re: [Caml-list] interface printing without generating object code?
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