220 35705 <ovpdm7$eqe$1@blaine.gmane.org> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Matthew Woehlke <mwoehlke.floss@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: pragma once
Date: Thu, 30 Nov 2017 12:04:14 -0500
Lines: 26
Approved: news@gmane.org
Message-ID: <ovpdm7$eqe$1@blaine.gmane.org>
References: <CAGz9X0c=CNLVEGgJ7=GJ2W+7fsvN7h+tbiFyf5Cx3aab0Xb=rQ@mail.gmail.com>
 <3d275c24-dc31-4fa7-a6db-e235ab2e00f1@isocpp.org>
 <ovp5tc$g28$1@blaine.gmane.org>
 <CAC+0CCMZW8hoM38WaSE_3kRhcss498gNp7KrnLSCXP7WKr=KPg@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Trace: blaine.gmane.org 1512176054 28419 195.159.176.226 (2 Dec 2017 00:54:14 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Sat, 2 Dec 2017 00:54:14 +0000 (UTC)
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
 Thunderbird/52.4.0
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBC37LBFWUIFBBL7TQ7IQKGQEM2CCZDI@isocpp.org Sat Dec 02 01:54:08 2017
Return-path: <std-proposals+bncBC37LBFWUIFBBL7TQ7IQKGQEM2CCZDI@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-qk0-f197.google.com ([209.85.220.197])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBC37LBFWUIFBBL7TQ7IQKGQEM2CCZDI@isocpp.org>)
	id 1eKw49-0006jB-J8
	for gclcip-std-proposals@m.gmane.org; Sat, 02 Dec 2017 01:54:02 +0100
Original-Received: by mail-qk0-f197.google.com with SMTP id a2sf7729844qkb.9
        for <gclcip-std-proposals@m.gmane.org>; Fri, 01 Dec 2017 16:54:09 -0800 (PST)
ARC-Seal: i=2; a=rsa-sha256; t=1512176049; cv=pass;
        d=google.com; s=arc-20160816;
        b=XLAsj/Xz1hCpqLAEcs1cUtDy3KrduGSR+cA+KnLB6BHAq7TJPREAd5f7ZkL5rkssyH
         OgWhXhXWKPTOQzcZjhll71lK5bYTI/h6iMQdYH/DyoE7Hl1PtrU12DyCnJy6bmN91nWy
         tHMciLdmAydtC5I3uHzRTac8M34Gh4ze1IT0f6F5Jxomvc+s09ydEu/w043HTDtZGC7A
         jZQ9vrFBXj4+Bgf3HL+MnudnhHJhMDfd5WVFlQuIQ65CdA6ewCE/9lMV4uGGEbn/HkyA
         tBVG8l0sQl7h+2/mVRtA1jMp9jyfvU1D/i+lIghUZo6CW35QbwFvERscXvC9+l/lYEmW
         +dTQ==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
         :list-id:mailing-list:precedence:reply-to:content-language
         :in-reply-to:user-agent:mime-version:references:message-id:lines
         :date:subject:from:to:arc-authentication-results
         :arc-message-signature:dkim-signature:arc-authentication-results;
        bh=5bqhpOTyUpk9tTsdZ6eIIKgMAH1MQkdp85C8R+l7/G0=;
        b=bbeA/TQGHzMoUj8YdpfTbVGts9QK5iSEVsekTVc6jKSemH9RnlOZsjZp0RG3z3yHeZ
         xgqUlTHQf+I7tWQTn9NCosS5c7cZkOr8sOpFKvxJOkChFB6b4zGjKfxgW7o4qudOUVjZ
         yNwk3p5S07wkJL1RZjVSPJUoqQ1dhY202lK+EXjv16ys4meh3BYqu9EEEMSSZfrVfQJz
         wwV12j/llxHPF55WsmBZ2JU6Ly98tbLfseB3w2GX6hEGOHrScz8bnhRG2xMaJHUEB0Ub
         aSTDQHmto3f9WdA3jxfxrnj0i4IH5GWj274tiitPDMBX+cRz9/i0RTib2+EOnGq+YQDu
         bEjA 
ARC-Authentication-Results: i=2; mx.google.com;
       spf=neutral (google.com: 195.159.176.226 is neither permitted nor denied by best guess record for domain of gclcip-std-proposals@m.gmane.org) smtp.mailfrom=gclcip-std-proposals@m.gmane.org;
       dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=to:from:subject:date:lines:message-id:references:mime-version
         :user-agent:in-reply-to:content-language:x-original-sender
         :x-original-authentication-results:reply-to:precedence:mailing-list
         :list-id:list-post:list-help:list-archive:list-subscribe
         :list-unsubscribe;
        bh=5bqhpOTyUpk9tTsdZ6eIIKgMAH1MQkdp85C8R+l7/G0=;
        b=ARrS2oCqEvNB8AOKU9gbqO13Im/3wYu38+kFAZt6CzjsEZu7ns8z+47R226fgpYB1+
         murnjpPHERbbApZF0EFEvaw+/3aBICkCNQn8h5gxSzOfV+G/u60z2zWD04ZdWIx8pUUP
         iy6pOJarXb8m+kipbyHrhWbmPoF7sUpdxo6L44fAOZXpBG8peKhc8cCpPMRo8cOtAVp/
         qKqBVHohAtp1CedrPKfIFkrT34m1cuUaYJZJt/b8dvqvvIgN+cyi50Ge6SS9Iquc7hdD
         4IsShWDkwQc4dIFjTx1nycMKDhT4zj8R4P/mA370YiUreBv2G08VPoj/K0/rGT2s2Ou0
         D2MQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:to:from:subject:date:lines:message-id:references
         :mime-version:user-agent:in-reply-to:content-language
         :x-original-sender:x-original-authentication-results:reply-to
         :precedence:mailing-list:list-id:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=5bqhpOTyUpk9tTsdZ6eIIKgMAH1MQkdp85C8R+l7/G0=;
        b=GGKUp5LbbOfCu2puSxcd/plWWobExdKjZ/q/N1+b+IKxO2UjcHazO9QJx1/hAIVFxi
         35wJblgmjCWfNDcqoc5rsFf8J0N5Jx4R0xpr666GZa66kF12yEbrUBrROI/gRoj6J2rO
         zKiElhnQCiItDF5YuCdDqCzxQ66GOUfteOQzBDsW+vuuKXYmYmBG0chleixpezfXzQNV
         5vLKh97vBjex51Y4JS0Rfjg7yrcN0Md7hlqfKNTrAtu3ZhQ4olgl4q+U+FcUWhGlBII5
         QF+KMOEAUEidWrKm3fKUWMtyDTGNF8HkAP9BPMQVKXBcsM36b0tXBZi8cAEFidy3uCRK
         WJrA==
X-Gm-Message-State: AKGB3mI99UiTLNYkGQ2MSm7QhZqauElj0Po9Nshf9M1v6QT9Wb8vQUjs
	K3/7Rjw3MDd7liRY97p9Ut0=
X-Google-Smtp-Source: AGs4zMb4fxV6Rcc/31lanBT+IJ+GH3vvyS2cU4+1uRTjE1v6h0W2YIUN+cFfw9ZS6n+IQKBhn5QApg==
X-Received: by 10.200.35.113 with SMTP id b46mr6201251qtb.48.1512176048820;
        Fri, 01 Dec 2017 16:54:08 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.55.192.212 with SMTP id v81ls1115017qkv.13.gmail; Fri, 01 Dec
 2017 16:54:07 -0800 (PST)
X-Received: by 10.237.57.129 with SMTP id m1mr5951983qte.39.1512176047777;
        Fri, 01 Dec 2017 16:54:07 -0800 (PST)
Original-Received: by 10.55.156.7 with SMTP id f7msqke;
        Thu, 30 Nov 2017 09:04:26 -0800 (PST)
X-Received: by 10.46.93.157 with SMTP id v29mr3349077lje.177.1512061465826;
        Thu, 30 Nov 2017 09:04:25 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1512061465; cv=none;
        d=google.com; s=arc-20160816;
        b=fuMpfeUh0/vtFSrka9TXw/hLPZ8sq0xyO56S6SHEUz1Zqdh0rSRy9TgcFkPkqrUgHw
         2HwY6vNcmau3hrO7903MkOk8CnlLadiPqcmPs5ipHPb+vPBjWuAuutM/2p7gBVxWXqVR
         PUpEpUzPoLZxGgxjt11OFOvqcqi4iXsxPV8vgCuvuEibPOCqciSgmp/SBl41ZCiHWP1r
         4gjH1Dn6RMtuTThz2rtCCNRrsx2dtWrBSCgDSBGKcl3sZd1Fjy3uxvl3FC1xxBRvFyfW
         LDpD21Q8g0e3aGYF7hhbFvNjgm7jOuCfVUO00JxsRu9VDHxvXEgw9CDBjHnKxWtxUrGS
         jQtQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=content-language:in-reply-to:user-agent:content-transfer-encoding
         :mime-version:references:message-id:lines:date:subject:from:to
         :arc-authentication-results;
        bh=Os0kv2H6D3N5a4mcmL2Zk7e/MDDiklYSuGJHWyIDt64=;
        b=wfd6wXQZKSPBD4mPUfxtzt9N+adLRp4PXzwRZoAhqMQ6PCOCBkseooXgxdCLB0+QQx
         tIkLqzQh7bVjM5ICRtorh4bCO585ovleqNIfCdcAQRH+b8t2zZF35/e7zU+mAsjSj18u
         i0OSwkKs4nY3UTuyaPnlRcsLmM8UwvsjewOSui6gIn0dqlYxH0xjRxjUji4Iiwfw9eTl
         MEal9M/Y+OWPPziDUxAg3NPkLjBhwe3hpll95YUY5V6uGkrYu4EVITfYkjifF1Zdzvxt
         wcr0uHLjLj/qnatefIre0/UbEnVLVKGi/8+DE+DJNoITg1gNyulgbHcxxUxFw5BqH2es
         Xu0g==
ARC-Authentication-Results: i=1; mx.google.com;
       spf=neutral (google.com: 195.159.176.226 is neither permitted nor denied by best guess record for domain of gclcip-std-proposals@m.gmane.org) smtp.mailfrom=gclcip-std-proposals@m.gmane.org;
       dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com
Original-Received: from blaine.gmane.org ([195.159.176.226])
        by mx.google.com with ESMTPS id t4si1895220ljb.114.2017.11.30.09.04.25
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Thu, 30 Nov 2017 09:04:25 -0800 (PST)
Received-SPF: neutral (google.com: 195.159.176.226 is neither permitted nor denied by best guess record for domain of gclcip-std-proposals@m.gmane.org) client-ip=195.159.176.226;
Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2)
	(envelope-from <gclcip-std-proposals@m.gmane.org>)
	id 1eKSG0-0006pQ-Te
	for std-proposals@isocpp.org; Thu, 30 Nov 2017 18:04:16 +0100
X-Injected-Via-Gmane: http://gmane.org/
Original-Lines: 19
Original-X-Complaints-To: usenet@blaine.gmane.org
In-Reply-To: <CAC+0CCMZW8hoM38WaSE_3kRhcss498gNp7KrnLSCXP7WKr=KPg@mail.gmail.com>
Content-Language: en-US
X-Original-Sender: mwoehlke.floss@gmail.com
X-Original-Authentication-Results: mx.google.com;       spf=neutral
 (google.com: 195.159.176.226 is neither permitted nor denied by best guess
 record for domain of gclcip-std-proposals@m.gmane.org) smtp.mailfrom=gclcip-std-proposals@m.gmane.org;
       dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com
Precedence: list
Mailing-list: list std-proposals@isocpp.org; contact std-proposals+owners@isocpp.org
List-ID: <std-proposals.isocpp.org>
X-Google-Group-Id: 399137483710
List-Post: <https://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <https://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <https://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>,
 <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:35705
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/35705>

On 2017-11-30 10:56, Jake Arkinstall wrote:
> How it works on other systems is a tough one, as is usually the case, but
> in general if you have the ability to include a file and parse it, I can't
> see why you won't also have the ability to hash it (perhaps with two
> different salts, to give two hashes, to significantly reduce accidental
> collisions between two different but well-formed files) and compare with
> already-included files.

So... you would make it *content*-based, rather than *name*-based? While
I agree that is probably more useful, I believe it is a departure from
current practice. (It's also potentially slow and problematic, since I
believe current compilers can work on streams as well as files.)

I tried something like that with http://wg21.link/p0538. The committee
is basically uninterested in doing anything in this area. (Modules, as
mentioned, is a major contributor to this disinterest.)

-- 
Matthew

-- 
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/ovpdm7%24eqe%241%40blaine.gmane.org.

.
