From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id 537057F72A for ; Tue, 9 Aug 2016 20:59:14 +0200 (CEST) IronPort-PHdr: 9a23:goowJhMgz2R+/dUY1Sgl6mtUPXoX/o7sNwtQ0KIMzox0Kfz6rarrMEGX3/hxlliBBdydsKMdzbKP+Pu/ESxYuNDa4ShEKMQNHzY+yuwu1zQ6B8CEDUCpZNXLVAcdWPp4aVl+4nugOlJUEsutL3fbo3m18CJAUk6nbVk9GO35F8bogtit0KjqotuIMlwO3GP2Ouw6bE3v616A7o9O2coqA51y4yOBmmFPdeVSyDEgDnOotDG42P2N+oV++T9bofMr+p0Ie6z7e6MlUe4QV2x+YCgdrffmvhjbTAaJ+mBUEiBPykIJUED560SwW5D2qSzmvcJy3SCbOYv9SrV+EWCn6KBwTwPjoCgCPj89tmrQj5ojorhcpUeNrgJ+z8b9ZIWOM+JmNvfRZ9pfQ2deRe5UWjBIGZ+1ZIhJBO0Ea7UL57LhrkcD+EPtTTKnA/nin3oR3if7 Authentication-Results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=dra-news@metastack.com; spf=Pass smtp.mailfrom=dra-news@metastack.com; spf=None smtp.helo=postmaster@outmail148112.authsmtp.co.uk Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of dra-news@metastack.com) identity=pra; client-ip=62.13.148.112; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="dra-news@metastack.com"; x-sender="dra-news@metastack.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail3-smtp-sop.national.inria.fr: domain of dra-news@metastack.com designates 62.13.148.112 as permitted sender) identity=mailfrom; client-ip=62.13.148.112; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="dra-news@metastack.com"; x-sender="dra-news@metastack.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@outmail148112.authsmtp.co.uk) identity=helo; client-ip=62.13.148.112; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="dra-news@metastack.com"; x-sender="postmaster@outmail148112.authsmtp.co.uk"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0CPAQARJ6pXfXCUDT5dgxiBA3wHpBUBAQaIWI4lJIV5AoFMPBABAQEBAQEBAREBAQsUCT0LgjIEARMBghMBAQU6PxACAQgYHhAhESUCBA4FCBKHfQMYAwEJvHYNhCwBAQgBAQEBASKFYoUVgkOBf4Mqgi8FiB6HMIk3NIYdhjKCOwqCL40KiC2HfzWEGW4Bhix/AQEB X-IPAS-Result: A0CPAQARJ6pXfXCUDT5dgxiBA3wHpBUBAQaIWI4lJIV5AoFMPBABAQEBAQEBAREBAQsUCT0LgjIEARMBghMBAQU6PxACAQgYHhAhESUCBA4FCBKHfQMYAwEJvHYNhCwBAQgBAQEBASKFYoUVgkOBf4Mqgi8FiB6HMIk3NIYdhjKCOwqCL40KiC2HfzWEGW4Bhix/AQEB X-IronPort-AV: E=Sophos;i="5.28,496,1464645600"; d="scan'208";a="187302568" Received: from outmail148112.authsmtp.co.uk ([62.13.148.112]) by mail3-smtp-sop.national.inria.fr with ESMTP; 09 Aug 2016 20:59:13 +0200 Received: from mail-c247.authsmtp.com (mail-c247.authsmtp.com [62.13.128.247]) by punt21.authsmtp.com (8.14.2/8.14.2/) with ESMTP id u79IxCAi094994; Tue, 9 Aug 2016 19:59:12 +0100 (BST) Received: from romulus.metastack.com (114.212-105-213.static.virginmediabusiness.co.uk [213.105.212.114]) (authenticated bits=0) by mail.authsmtp.com (8.14.2/8.14.2/) with ESMTP id u79IxACa053963 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 9 Aug 2016 19:59:11 +0100 (BST) Received: from remus.metastack.local (remus.metastack.com [172.16.0.1]) by romulus.metastack.com (8.14.2/8.14.2) with ESMTP id u79IxAe6009056; Tue, 9 Aug 2016 19:59:10 +0100 Received: from Remus.metastack.local ([fe80::547c:3c42:e1da:eda2]) by Remus.metastack.local ([fe80::547c:3c42:e1da:eda2%10]) with mapi id 14.03.0301.000; Tue, 9 Aug 2016 19:59:10 +0100 From: David Allsopp To: "moosotc@gmail.com" CC: Gabriel Scherer , caml users Thread-Topic: [Caml-list] Interface(.mli) location Thread-Index: AQHR8mzIWCvy6CNG7kmmtpBMUxmENKBA+ekw Date: Tue, 9 Aug 2016 18:59:09 +0000 Message-ID: References: <8737mfp7j3.fsf@gmail.com> <87y447npv3.fsf@gmail.com> <87r39znl6m.fsf@gmail.com> <87mvknnia0.fsf@gmail.com> <87k2fqcirv.fsf@gmail.com> <87d1licgmw.fsf@gmail.com> <878tw6cgh2.fsf@gmail.com> <87vaz9bxjq.fsf@gmail.com> In-Reply-To: <87vaz9bxjq.fsf@gmail.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.16.0.29] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Organization: MetaStack Solutions Ltd. X-Scanned-By: MIMEDefang 2.65 on 172.16.0.20 X-Server-Quench: 5bae703a-5e63-11e6-bcde-0015176ca198 X-AuthReport-Spam: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-AuthRoute: OCd1ZAARAlZZVg1f DC4bFwdFRBksPQFF ChxFJgxfNl8UURhQ KkJXbgESJgVNAnhE VHkJW1VSQFx4U2Z8 YQtQIwdcYVRPXwB0 UklLXFNTEBpqBAMA SFsZW2A6BnYXeHtz bEBhEHFZXUB9O0Mv ExtTFW5XeGI1bmMC UUENcR4GI1cfYx9F a1V+U3VeMGQObjQC Ml17DBs4ODEaLCVO XjRFDFQOTFwFFzUx B1YHGTRuVUkCTCwv LhsgQl4B X-Authentic-SMTP: 61633634383431.1038:706 X-AuthFastPath: 0 (Was 255) X-AuthSMTP-Origin: 213.105.212.114/25 X-AuthVirus-Status: No virus detected - but ensure you scan with your own anti-virus system. Subject: RE: [Caml-list] Interface(.mli) location moosotc@gmail.com wrote: > David Allsopp writes: >=20 > > moosotc@gmail.com wrote: > >> moosotc@gmail.com writes: > >> > >> > moosotc@gmail.com writes: > >> > > >> >> David Allsopp writes: > >> >> > >> > [..snip..] > >> > > >> >>>> > >> >>>> d) Make the compiler skip generation of .cmi if it sees one in the > -I > >> >>>> directories? > >> >>> > >> >>> No - I think the use-case is too niche to justify breaking > >> >>> backwards compatibility. That's potentially a very subtle way to > >> >>> break someone else's existing build system. The existing > >> >>> behaviour is precisely documented in the manual (even if it's not > >> >>> necessarily the best approach). > >> >>> > >> >> > >> >> Original post asked for either change of behavior or > >> >> documentation, I failed to find the precise documentation, care > >> >> pointing out where exactly things are described in the manual? > > > > http://caml.inria.fr/pub/docs/manual-ocaml/comp.html#sec263 describes > > how .mli and .ml are handled by the compiler (and when .cmi is > > generated or checked against) and the description of -I in > > http://caml.inria.fr/pub/docs/manual-ocaml/comp.html#sec264 explains > > that -I only adds search directories for compiled files, not source > > files. >=20 > Thanks, but the manual is completely silent on WHERE it looks for those > files. The issue is not trivial as there are 3 options I can readily come > up with: > a. current working directory > b. base directory of -o argument > c. a set of -I directories > d. directory where file to be compiled lives >=20 > It looks as if option d. is in effect, but nowhere it is spelled out. Hmm - to my taste the silence says everything required! Options b and c are= completely illogical (b would involve inferring an input directory from an= output directory and option c contradicts something the manual does state = about what -I means). Option a would be surprising behaviour and to my mind= is contradicted by the use of "x" in italics 8.1 which to me quite reasona= bly reads as "change the .ml to .mli" and so include the directory, if ther= e is one. To expect the compiler to look for ./foo.mli when you specified b= ar/foo.ml would mean you'd changed "x".=20 David