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 D660ABC37 for ; Fri, 18 Dec 2009 07:55:45 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ai0HABO2Kks+BBBod2dsb2JhbACBS5dDglIBCg0ICRAGuHOELQQ X-IronPort-AV: E=Sophos;i="4.47,417,1257116400"; d="scan'208";a="40147897" Received: from smtp-104-thursday.nerim.net (HELO kraid.nerim.net) ([62.4.16.104]) by mail3-smtp-sop.national.inria.fr with ESMTP; 18 Dec 2009 07:55:45 +0100 Received: from hector.lesours (ours.starynkevitch.net [213.41.244.95]) by kraid.nerim.net (Postfix) with ESMTP id CBD98CF262; Fri, 18 Dec 2009 07:55:44 +0100 (CET) Received: from glinka.lesours ([192.168.0.1]) by hector.lesours with esmtp (Exim 4.69) (envelope-from ) id 1NLWkn-0007Nw-HS; Fri, 18 Dec 2009 07:55:57 +0100 Message-ID: <4B2B2772.7030803@starynkevitch.net> Date: Fri, 18 Dec 2009 07:55:46 +0100 From: Basile STARYNKEVITCH User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20091109) MIME-Version: 1.0 To: Romain Bardou Cc: caml-list Subject: Re: [Caml-list] Module abbreviation References: <4B27BBB4.50006@bardou.fr> <4B27C100.1090200@starynkevitch.net> <4B2A1784.2060008@lri.fr> In-Reply-To: <4B2A1784.2060008@lri.fr> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; basile:01 basile:01 abbreviation:01 mli:01 mli:01 ocamlc:01 cmo:01 ocamlc:01 faiencerie:01 92340:01 reine:01 wrote:01 wrote:01 caml-list:01 caml-list:01 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. Regards -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basilestarynkevitchnet mobile: +33 6 8501 2359 8, rue de la Faiencerie, 92340 Bourg La Reine, France *** opinions {are only mines, sont seulement les miennes} ***