From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by yquem.inria.fr (Postfix) with ESMTP id 6FA9DBC37 for ; Fri, 18 Dec 2009 13:06:44 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqEEAH/+KkuBrw8Bb2dsb2JhbACZBoJSAQwLCQYVuFuELQQ X-IronPort-AV: E=Sophos;i="4.47,417,1257116400"; d="scan'208";a="40177930" Received: from lri.lri.fr ([129.175.15.1]) by mail3-smtp-sop.national.inria.fr with ESMTP; 18 Dec 2009 13:06:44 +0100 Received: from localhost (localhost [127.0.0.1]) by lri.lri.fr (Postfix) with ESMTP id DFEE7C8009; Fri, 18 Dec 2009 13:06:43 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at lri.fr Received: from lri.lri.fr ([127.0.0.1]) by localhost (lri.lri.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HN6vCtaHF7-c; Fri, 18 Dec 2009 13:06:43 +0100 (CET) Received: from smtp-ng.lri.fr (smtp-ng [129.175.3.73]) by lri.lri.fr (Postfix) with ESMTP id CD107C8005; Fri, 18 Dec 2009 13:06:43 +0100 (CET) Received: from [129.175.4.238] (lri4-238 [129.175.4.238]) by smtp-ng.lri.fr (Postfix) with ESMTP id BBE2D12006A; Fri, 18 Dec 2009 13:06:43 +0100 (CET) Message-ID: <4B2B703E.8020502@lri.fr> Date: Fri, 18 Dec 2009 13:06:22 +0100 From: Romain Bardou User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090707) MIME-Version: 1.0 To: Basile STARYNKEVITCH Cc: caml-list Subject: Re: [Caml-list] Module abbreviation References: <4B27BBB4.50006@bardou.fr> <4B27C100.1090200@starynkevitch.net> <4B2A1784.2060008@lri.fr> <4B2B2772.7030803@starynkevitch.net> In-Reply-To: <4B2B2772.7030803@starynkevitch.net> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; lri:01 abbreviation:01 basile:01 basile:01 mli:01 mli:01 ocamlc:01 cmo:01 ocamlc:01 cmi:01 cheers:01 wrote:01 wrote:01 caml-list:01 caml-list:01 Basile STARYNKEVITCH wrote: > Romain Bardou wrote: >> Basile STARYNKEVITCH wrote: >>> Romain Bardou wrote: >>>> Hello, dear Caml-list, >>>> >>>> I have a file ast.mli. It has no .ml implementation as it contains only >>>> type definitions. >>> >>> Then you should name that file ast.ml. Last time I tested (more than a >>> year ago) n ast.ml file without corresponding ast.mli file is handled as >>> if ast.mli was the output of ocamlc -i ast.ml. >>> >>> Regards >> >> Yes, this seems to be the easiest way. It's too bad that this implies >> having a .cmo to link against just for some type definitions, though. > > > Why is that bad? The *.cm[oi] files are the only ones containing the > processed type & module information, and we obviously don't want ocamlc > to reparse ast.mli each time it is needed. Indeed, but a .cmi would be enough :) Cheers, -- Romain Bardou