220 14115 <b39e96aa-f16e-4733-b46e-26a5feda5a55@isocpp.org> article
Path: news.gmane.org!not-for-mail
From: Olaf van der Spek <olafvdspek@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: #pragma once
Date: Wed, 22 Oct 2014 00:04:26 -0700 (PDT)
Lines: 93
Approved: news@gmane.org
Message-ID: <b39e96aa-f16e-4733-b46e-26a5feda5a55@isocpp.org>
References: <3d0ab5b0-73d9-434a-9ae4-cd47d8275590@isocpp.org>
 <DUB127-W865FBE5980F6045004B5188C940@phx.gbl>
 <202c5550-8669-4b45-aa39-9a8d26c37015@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; 
	boundary="----=_Part_5290_611197915.1413961466434"
X-Trace: ger.gmane.org 1413961475 6578 80.91.229.3 (22 Oct 2014 07:04:35 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Wed, 22 Oct 2014 07:04:35 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBC5NB45SSABBB65NTWRAKGQEEIREPCQ@isocpp.org Wed Oct 22 09:04:30 2014
Return-path: <std-proposals+bncBC5NB45SSABBB65NTWRAKGQEEIREPCQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-qc0-f198.google.com ([209.85.216.198])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBC5NB45SSABBB65NTWRAKGQEEIREPCQ@isocpp.org>)
	id 1Xgpy8-00040c-Ko
	for gclcip-std-proposals@m.gmane.org; Wed, 22 Oct 2014 09:04:28 +0200
Original-Received: by mail-qc0-f198.google.com with SMTP id o8sf2861260qcw.5
        for <gclcip-std-proposals@m.gmane.org>; Wed, 22 Oct 2014 00:04:27 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=date:from:to:message-id:in-reply-to:references:subject:mime-version
         :x-original-sender:reply-to:precedence:mailing-list:list-id
         :list-post:list-help:list-archive:list-subscribe:list-unsubscribe
         :content-type;
        bh=dRn2TiY74GygAOX1dHT35QJ1B/Tvv0nkyVa/DhZamCU=;
        b=JO24bWKaZIh73HqVRsaI0NvFenMAmJ5QPV9AYrAAMYnfFP2nYLN2+0EAtjO+9VMDUe
         DI8d/yUhZGBQc++ewjJKKJxx+e1CCUmNyA4pU+DLZzjnhQwIsWyZwqX/rJ68Lr446U3M
         bTNOlhar5LMCMBby9QU3qRLHdKr3veN2xzi5GEGzA1+ZCzhRUhFUqgfWy4Xm2Q0iXG42
         BgtH+vKmLOwiR3Dj6A7VJbzGirJUFSQveP63vCRGI2VrbXQrmP505zXFoaIF5V8G6YJT
         5839MYg4fP/UvBoMhMZj0zbNj0bGSjZfwZWat65TiIMZPpJlq9pH/vR4IRxEo6WbbnRn
         yNzQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:date:from:to:message-id:in-reply-to:references
         :subject:mime-version:x-original-sender:reply-to:precedence
         :mailing-list:list-id:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe:content-type;
        bh=dRn2TiY74GygAOX1dHT35QJ1B/Tvv0nkyVa/DhZamCU=;
        b=XVYbT+XXdFCNsWmTcmIpcP0XZA+Nj6+zipokn6gML6z0vOXVPPR5BlRm2udXEqr9nK
         2g5PwjTbcTEAPGqwK3ySsa4T+evs+DsUXvTzKrHj9d9P8xHLpZnBd4nXmo4GNaZVoZBh
         ksO+UQVxEOu+zr8rh4KNMSw61NEVwL2K+4aQQOmWSIV3Bj0z39Hr1w1g/PHv2KD1tIIY
         JytaomzX3mbGPEitMWFt9CAhPj7uvsmRiAeMfHB5f7+mRx/FzTje6oezdIN2kealB0S5
         gcJc7onbMYcMmsMZLZzZHJDk6MtJT4nm1tP+tfW35B+lJRWFCwAIACKw7WJXpF7iVm9U
         9cwg==
X-Gm-Message-State: ALoCoQkWpbQ02GrISVQ3PXGzHQ4LVOyw2x+BhRRag6kXTGw0A8bxnOvNkemxKdafZiQo5KcGejq0
X-Received: by 10.236.209.194 with SMTP id s42mr25755700yho.42.1413961467723;
        Wed, 22 Oct 2014 00:04:27 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.140.43.100 with SMTP id d91ls617095qga.6.gmail; Wed, 22 Oct
 2014 00:04:27 -0700 (PDT)
X-Received: by 10.140.109.132 with SMTP id l4mr4903qgf.24.1413961467040;
        Wed, 22 Oct 2014 00:04:27 -0700 (PDT)
In-Reply-To: <202c5550-8669-4b45-aa39-9a8d26c37015@isocpp.org>
X-Original-Sender: olafvdspek@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: <http://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <http://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <http://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <http://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>,
 <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:14115
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/14115>

------=_Part_5290_611197915.1413961466434
Content-Type: text/plain; charset=UTF-8

On Tuesday, October 21, 2014 10:32:00 PM UTC+2, Chet wrote:
>
> It has been determined that it is more difficult to implement than you 
> would think:
>
> http://stackoverflow.com/questions/23696115/is-pragma-once-part-of-the-c11-standard
>
> http://stackoverflow.com/questions/1695807/why-isnt-c-cs-pragma-once-an-iso-standard
>
> The Modules proposal aims to solve the problems of include files in a 
> better way:
> http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4047.pdf
>

Is it really that difficult?
If the name doesn't match an already seen file but the size does one could 
hash the contents and check the hash.
 

-- 

--- 
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.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposals/.

------=_Part_5290_611197915.1413961466434
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">On Tuesday, October 21, 2014 10:32:00 PM UTC+2, Chet wrote=
:<blockquote class=3D"gmail_quote" style=3D"margin: 0;margin-left: 0.8ex;bo=
rder-left: 1px #ccc solid;padding-left: 1ex;"><div dir=3D"ltr"><div>It has =
been determined that it is more difficult to implement than you would think=
:</div><a href=3D"http://stackoverflow.com/questions/23696115/is-pragma-onc=
e-part-of-the-c11-standard" target=3D"_blank" onmousedown=3D"this.href=3D'h=
ttp://www.google.com/url?q\75http%3A%2F%2Fstackoverflow.com%2Fquestions%2F2=
3696115%2Fis-pragma-once-part-of-the-c11-standard\46sa\75D\46sntz\0751\46us=
g\75AFQjCNES9TypD5mHdlQK51fkaP9dzdeQOw';return true;" onclick=3D"this.href=
=3D'http://www.google.com/url?q\75http%3A%2F%2Fstackoverflow.com%2Fquestion=
s%2F23696115%2Fis-pragma-once-part-of-the-c11-standard\46sa\75D\46sntz\0751=
\46usg\75AFQjCNES9TypD5mHdlQK51fkaP9dzdeQOw';return true;">http://stackover=
flow.com/<wbr>questions/23696115/is-pragma-<wbr>once-part-of-the-c11-standa=
rd</a><div><a href=3D"http://stackoverflow.com/questions/1695807/why-isnt-c=
-cs-pragma-once-an-iso-standard" target=3D"_blank" onmousedown=3D"this.href=
=3D'http://www.google.com/url?q\75http%3A%2F%2Fstackoverflow.com%2Fquestion=
s%2F1695807%2Fwhy-isnt-c-cs-pragma-once-an-iso-standard\46sa\75D\46sntz\075=
1\46usg\75AFQjCNGUPN-4fgYScvLGFc_Uh4rSjYFozA';return true;" onclick=3D"this=
..href=3D'http://www.google.com/url?q\75http%3A%2F%2Fstackoverflow.com%2Fque=
stions%2F1695807%2Fwhy-isnt-c-cs-pragma-once-an-iso-standard\46sa\75D\46snt=
z\0751\46usg\75AFQjCNGUPN-4fgYScvLGFc_Uh4rSjYFozA';return true;">http://sta=
ckoverflow.com/<wbr>questions/1695807/why-isnt-c-<wbr>cs-pragma-once-an-iso=
-standard</a></div><div><br></div><div><span style=3D"color:rgb(0,0,0);font=
-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif;font-size:13.33333=
39691162px;line-height:17.804801940918px">The Modules proposal aims to solv=
e the problems of include files in a better way:</span></div><div><font col=
or=3D"#000000" face=3D"Arial, Liberation Sans, DejaVu Sans, sans-serif"><sp=
an style=3D"line-height:17.804801940918px"><a href=3D"http://www.open-std.o=
rg/jtc1/sc22/wg21/docs/papers/2014/n4047.pdf" target=3D"_blank" onmousedown=
=3D"this.href=3D'http://www.google.com/url?q\75http%3A%2F%2Fwww.open-std.or=
g%2Fjtc1%2Fsc22%2Fwg21%2Fdocs%2Fpapers%2F2014%2Fn4047.pdf\46sa\75D\46sntz\0=
751\46usg\75AFQjCNGeTcNge2rjuAQqbtQ84Fhwx3quNg';return true;" onclick=3D"th=
is.href=3D'http://www.google.com/url?q\75http%3A%2F%2Fwww.open-std.org%2Fjt=
c1%2Fsc22%2Fwg21%2Fdocs%2Fpapers%2F2014%2Fn4047.pdf\46sa\75D\46sntz\0751\46=
usg\75AFQjCNGeTcNge2rjuAQqbtQ84Fhwx3quNg';return true;">http://www.open-std=
..org/jtc1/<wbr>sc22/wg21/docs/papers/2014/<wbr>n4047.pdf</a></span></font><=
/div></div></blockquote><div><br></div><div>Is it really that difficult?</d=
iv><div>If the name doesn't match an already seen file but the size does on=
e could hash the contents and check the hash.</div><div>&nbsp;<br></div></d=
iv>

<p></p>

-- <br />
<br />
--- <br />
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org">std-proposa=
ls+unsubscribe@isocpp.org</a>.<br />
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org">std-proposals@isocpp.org</a>.<br />
Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/">http://groups.google.com/a/isocpp.org/group/std-proposals/<=
/a>.<br />

------=_Part_5290_611197915.1413961466434--

.
