Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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.mli
> because when the compiler sees, there is a foo.mli already,
> but there is no accompanying .cmi.

Couldn't you just:

ocamlc -c -i > foo.mli.tmp
mv foo.mli.tmp foo.mli ?

: Michal Moskal ::::: malekith/at/ :  GCS {C,UL}++++$ a? !tv
: PLD Linux ::::::: Wroclaw University, CS Dept :  {E-,w}-- {b++,e}>+++ h
To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: