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] -i option to compiler
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2002-01-10 (01:57)
From: Jacques Garrigue <garrigue@k...>
Subject: Re: [Caml-list] -i option to compiler
From: Ian Zimmerman <>

> The real root of the inconvenience is that the compiler treats -i runs
> as normal compilations with just a silly side task to take care of.
> Instead, it should just switch to a mode where generating the
> interface is the _only_ thing it does, and overwrite an existing .mli
> file if necessary (let user beware).

That seems reasonnable: I cannot actually imagine a situation where
one would want to produce both the .cmo and .mli simultaneously.
Making -i a compilation mode by itself would have the extra advantage
of avoiding to produce an a.out when one forgot the (meaningless) -c.

Jacques Garrigue
Bug reports:  FAQ:
To unsubscribe, mail  Archives: