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: -- (:)
From: Ian Zimmerman <itz@s...>
Subject: Re: [Caml-list] -i option to compiler

David> I guess that the compiler should accept a -output-mli option or
David> something similar, to avoid the above kludge.

Eric> Or just suppress the complaint in the case of an empty .mli file
Eric> created within the past few seconds.

Even having been shown a fool, I have to disagree with both. :-)

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).

Ian Zimmerman, Oakland, California, U.S.A.
GPG: 433BA087  9C0F 194F 203A 63F7 B1B8  6E5A 8CA3 27DB 433B A087
In his own soul a man bears the source
from which he draws all his sorrows and his joys.
Bug reports:  FAQ:
To unsubscribe, mail  Archives: