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 8CA5D7F72A for ; Tue, 9 Aug 2016 18:32:36 +0200 (CEST) IronPort-PHdr: 9a23:8/UjsxJNA+1Al3OrqNmcpTZWNBhigK39O0sv0rFitYgVK/3xwZ3uMQTl6Ol3ixeRBMOAuqsC07Od6/6oGTRZp83Q6DZaKN0EfiRGoP1epxYnDs+BBB+zB9/RRAt+Iv5/UkR49WqwK0lfFZW2TVTTpnqv8WxaQU2nZkJLL+j4UrTfk96wn7jrvcaCOkMQ3XHlP/sydEzw9lSJ8JFOwMNLEeUY8lPxuHxGeuBblytDBGm4uFLC3Pq254Np6C9KuvgspIZqWKT+eLkkH/QDVGx1e0h83sDgtAHCQA2T/TNcFzxOylsbSzTCuSrUFrL4qCjnraJQ3CeAPMv5BeQ5XTq47qFkYALzhT0ccSU+7Xvch8J3lq1W5hSsu0os7ZTTZdS5PeR/cuv0edcBQnJZFpJdTSUEBI6jdKMKAvYIJvpRpIq7rFwL+0jtTTKwDf/in2cbzkT92rc3hqF4SVnL 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@outmail148102.authsmtp.net 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.102; 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.102 as permitted sender) identity=mailfrom; client-ip=62.13.148.102; 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@outmail148102.authsmtp.net) identity=helo; client-ip=62.13.148.102; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="dra-news@metastack.com"; x-sender="postmaster@outmail148102.authsmtp.net"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0AIAAAeBapXmGaUDT5dgxiBA3wHpBcGln0chgECgUs8EAEBAQEBAQEBEQEBAQEBBg0LBxkvgjIEARMBghMBAQQBOj8QAgEIGB4QMiUCBA4NiCEJAwHBNAEBAQEGAQEBAQEBIYVihRWEQoMqgi8BBJk5jwoKjzmITodeNYJCgVduhi1/AQEB X-IPAS-Result: A0AIAAAeBapXmGaUDT5dgxiBA3wHpBcGln0chgECgUs8EAEBAQEBAQEBEQEBAQEBBg0LBxkvgjIEARMBghMBAQQBOj8QAgEIGB4QMiUCBA4NiCEJAwHBNAEBAQEGAQEBAQEBIYVihRWEQoMqgi8BBJk5jwoKjzmITodeNYJCgVduhi1/AQEB X-IronPort-AV: E=Sophos;i="5.28,495,1464645600"; d="scan'208";a="187295341" Received: from outmail148102.authsmtp.net ([62.13.148.102]) by mail3-smtp-sop.national.inria.fr with ESMTP; 09 Aug 2016 18:32:35 +0200 Received: from mail-c232.authsmtp.com (mail-c232.authsmtp.com [62.13.128.232]) by punt20.authsmtp.com (8.14.2/8.14.2/) with ESMTP id u79GWYHn097481; Tue, 9 Aug 2016 17:32:34 +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 u79GWWBp069441 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 9 Aug 2016 17:32:33 +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 u79GWW4K008241; Tue, 9 Aug 2016 17:32:32 +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 17:32:32 +0100 From: David Allsopp To: SF Markus Elfring CC: "moosotc@gmail.com" , Gabriel Scherer , "caml-list@inria.fr" Thread-Topic: [Caml-list] Interface(.mli) location Thread-Index: AQHR8aanWCvy6CNG7kmmtpBMUxmENKA/dJQwgADWe4CAAIcbsA== Date: Tue, 9 Aug 2016 16:32:31 +0000 Message-ID: References: <8737mfp7j3.fsf@gmail.com> <87y447npv3.fsf@gmail.com> <87r39znl6m.fsf@gmail.com> <378f6aa4-7e9d-19ee-2e45-93f386349703@users.sourceforge.net> In-Reply-To: <378f6aa4-7e9d-19ee-2e45-93f386349703@users.sourceforge.net> 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: dfb7775a-5e4e-11e6-829e-00151795d556 X-AuthReport-Spam: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-AuthRoute: OCd1ZAARAlZZVg1f DC4bFwdFRBksPQFF ChxFJgxfNl8UURhQ KkJXbgYSJgVNAnhE VHkJW1VSQFx2U2B3 YQlSIwdcYVRPXwB0 UklLXFNTEBpqBAMA SFsZW24VEHcGeHh5 YUJjEHFbW0xyOxIr EElTEmhXeGI1bDUC UUENcR5ccgofYx9F a1V+U3oINWACYDQC Ml17DBs4ODEaLCVO XjRFDFQOTFwFFzUx B1YHGTRuVUkCTCwv LhsgQl4B X-Authentic-SMTP: 61633634383431.1037: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 SF Markus Elfring wrote: > > a) Delete ./a.cmi as part of your build procedure. >=20 > Can this design option trigger difficulties in your file system > configuration? What sort of difficulties do you mean? > > This isn't ideal, though, because you lose the type-checking > > against d/a.cmi >=20 > Would you like to explain this conclusion a bit more? d/a.cmi may constrain values defined in ./a.ml and you won't get the type-c= hecking this way. For example, you could have [val foo: int] in d/a.mli but= [let foo =3D "bar"] in ./a.ml and compiling this way you'll only spot the = error later on when trying to link. > > c) Implement a new option in the compiler driver which suppresses > > the automatic generation of .cmi files (e.g. ocamlc -c -I d -no-cmi > > a.ml) >=20 > I would find such a command parameter also useful. > Will any more fine-tuning be considered for the safer handling of > interface descriptions and corresponding implementations? I was just floating ideas - if it's actually useful, raise a Mantis PR! David