Browse thread
[Caml-list] automatic extraction of mli file?
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Yang Shouxun <yangsx@f...> |
| Subject: | Re: [Caml-list] automatic extraction of mli file? |
Nicolas Cannasse wrote: >>What I'm wondering is "wouldn't it be preferrable to automatically >>produce the interface file from the implementation file?", so that we >>can program in the literate programming style, do prototyping, and save >>the drudgery of writing the interface (though a little manual editing >>may be necessary, or some kind of markup in the source code). > The "-i" ocamlc compiler flag is what you need. This seems to be not what I mean. OK, that is what I asked :(. All the comments will be removed. That is not desirable, for the mli file is meant to be read by both machine and humans. The humans need the comments to make sense of the interface file, without reference to the implementation code. I guess an extension to the ocamlweb is what I mean. Best! shouxun ------------------- 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