From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id TAA15752 for caml-redistribution; Fri, 10 Jul 1998 19:33:25 +0200 (MET DST) Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id EAA24647 for ; Fri, 10 Jul 1998 04:03:40 +0200 (MET DST) Received: from www.nextsolution.co.jp (www.nextsolution.co.jp [202.33.245.114]) by nez-perce.inria.fr (8.8.7/8.8.7) with SMTP id EAA03293 for ; Fri, 10 Jul 1998 04:03:36 +0200 (MET DST) Received: from sparc1.nextsolution.co.jp (sparc1 [202.235.80.1]) by www.nextsolution.co.jp (SMI-8.6/) with ESMTP id KAA05476; Fri, 10 Jul 1998 10:57:19 +0900 Received: from compq4 by sparc1.nextsolution.co.jp (SMI-8.6/SMI-SVR4) id LAA01899; Fri, 10 Jul 1998 11:02:44 +0900 Message-ID: <002801bdaba8$4716bd90$6f50ebca@compq4.newton> Reply-To: "Frank A. Christoph" From: "Frank A. Christoph" To: , "Marc Rouaix" Subject: RE: extensions Date: Fri, 10 Jul 1998 11:13:06 +0900 MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.2106.4 X-Mimeole: Produced By Microsoft MimeOLE V4.72.2106.4 Sender: weis >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. --FC