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
RE: extensions
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 1998-07-10 (17:33)
From: Frank A. Christoph <christo@n...>
Subject: RE: extensions
>Can ocaml be made to compile files with extensions other than .ml?  I want
to >use both SML and ocaml and have Emacs go into the right mode based on
the file >extension (yes I know I can indicate the proper mode to Emacs by
putting >something in a comment).

Use the -impl option, e.g.,

  ocamlc -c -impl foo.caml

You can use -intf to compile interfaces too, but I bet you will have
problems unless interfaces end with .mli.