220 14102 <59ae3383-67a5-4a4c-b301-06cf148c9df6@isocpp.org> article
Path: news.gmane.org!not-for-mail
From: Christopher <christopherhallock@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: #pragma once
Date: Tue, 21 Oct 2014 14:04:00 -0700 (PDT)
Lines: 77
Approved: news@gmane.org
Message-ID: <59ae3383-67a5-4a4c-b301-06cf148c9df6@isocpp.org>
References: <3d0ab5b0-73d9-434a-9ae4-cd47d8275590@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; 
	boundary="----=_Part_942_342251634.1413925440498"
X-Trace: ger.gmane.org 1413925450 28585 80.91.229.3 (21 Oct 2014 21:04:10 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Tue, 21 Oct 2014 21:04:10 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCHINCHEQEFBBQMUTORAKGQEWTZCLQA@isocpp.org Tue Oct 21 23:04:03 2014
Return-path: <std-proposals+bncBCHINCHEQEFBBQMUTORAKGQEWTZCLQA@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-pd0-f200.google.com ([209.85.192.200])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCHINCHEQEFBBQMUTORAKGQEWTZCLQA@isocpp.org>)
	id 1Xggb4-0004DB-Sa
	for gclcip-std-proposals@m.gmane.org; Tue, 21 Oct 2014 23:04:03 +0200
Original-Received: by mail-pd0-f200.google.com with SMTP id ft15sf10055988pdb.3
        for <gclcip-std-proposals@m.gmane.org>; Tue, 21 Oct 2014 14:04:01 -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=5uyBXUbDNBKAUiGMbtfYYcrHy7gRqCHHBVB7n9esywk=;
        b=ZSAqWvlAruWS4epPrzhiV5GALyX87EfgzGiWX5Me7DUukdBdynFAkdlJ3U6CT53wdM
         biqsnBMpobZX5kMA2GTo9ie6OO+HFG09+nUDh+bqxmlyD36WWNYDqKQvqzPuulOcoxc3
         w15bM6DpOf/OuwyoZMvatTAvwOnyXK+9plb3nG7oL96TFJbBrxKmIWOJgT2kJdbgGvXk
         HErt0Um82MQ3rXR6YrVdqZQ8BVbqbFmB/tU5PIJfBkUKVPJMVYiiQlnS7AYOG1XP5hBq
         FdgrPgRiK7iLoxEELylDzh+NXWuN+W3RqAECFn4Gs4cu1XKRjqO8HH24hCLO6VuBsliR
         V2AQ==
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=5uyBXUbDNBKAUiGMbtfYYcrHy7gRqCHHBVB7n9esywk=;
        b=WsC/xAPiSiLZCZGR9y0eVR2P0B6b32RI9z+fCvjW9SBYcK6y14zJgvVjyx8o14joGM
         hhTV/0zLm1W1X/0+PdP8F5CwgLDXySb3v4b0S8UqrLZQE3YPa4bq42awV+yS0BBd8kbd
         QVgpvLVc6Fb8kOFfT7tbxnkXFv1+4KMhadPnt07MLnLIj27ACQB0e2RExWGh/HZVIznb
         4Cyw3SoARaB/EDb6WphHpE3w3F6La052h4b0qXsz9RgtpNx4dy+M3B8gT+LEt5tj1uJU
         ZNETAkXHz/DOE6ux1yChEtZIp3QgTvE8a7b5VsPK5ME5NhlP9Ob2b+XA8TUQD6Q5PvWR
         hNJg==
X-Gm-Message-State: ALoCoQndclX7Qf4gDD5ofcToKqGQHfYxHYeuzxuIa+P8AabcnN1y/MT6CHTurHabOKn+rwmFmmxm
X-Received: by 10.66.66.196 with SMTP id h4mr910308pat.26.1413925441724;
        Tue, 21 Oct 2014 14:04:01 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.140.96.16 with SMTP id j16ls514686qge.20.gmail; Tue, 21 Oct
 2014 14:04:01 -0700 (PDT)
X-Received: by 10.140.91.4 with SMTP id y4mr56808qgd.14.1413925440950;
        Tue, 21 Oct 2014 14:04:00 -0700 (PDT)
In-Reply-To: <3d0ab5b0-73d9-434a-9ae4-cd47d8275590@isocpp.org>
X-Original-Sender: christopherhallock@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:14102
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/14102>

------=_Part_942_342251634.1413925440498
Content-Type: text/plain; charset=UTF-8


>
> By the way, why don't _Pragma and #line support concatenating multiple 
> strings in their respective string parameters?
>

String concatenation happens later (Phase 6). For _Pragma, this is not too 
bad if you're willing to build up *unquoted *pp-tokens and pass them to a 
wrapper-macro:

#define RAW_TOKENS_PRAGMA2(...)  _Pragma(#__VA_ARGS__)
#define RAW_TOKENS_PRAGMA(...)   RAW_TOKENS_PRAGMA2(__VA_ARGS__)

-- 

--- 
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_942_342251634.1413925440498
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><blockquote class=3D"gmail_quote" style=3D"margin: 0;margi=
n-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir=3D"l=
tr">By the way, why don't <span style=3D"font-family:courier new,monospace"=
>_Pragma</span> and <span style=3D"font-family:courier new,monospace">#line=
</span> support concatenating multiple strings in their respective string p=
arameters?<br></div></blockquote><div><br>String concatenation happens late=
r (Phase 6). For _Pragma, this is not too bad if you're willing to build up=
 <i>unquoted </i>pp-tokens and pass them to a wrapper-macro:<br><br><div cl=
ass=3D"prettyprint" style=3D"background-color: rgb(250, 250, 250); border-c=
olor: rgb(187, 187, 187); border-style: solid; border-width: 1px; word-wrap=
: break-word;"><code class=3D"prettyprint"><div class=3D"subprettyprint"><s=
pan style=3D"color: #800;" class=3D"styled-by-prettify">#define</span><span=
 style=3D"color: #000;" class=3D"styled-by-prettify"> </span><code class=3D=
"prettyprint"><span style=3D"color: #000;" class=3D"styled-by-prettify">RAW=
_TOKENS_PRAGMA2</span><span style=3D"color: #660;" class=3D"styled-by-prett=
ify"></span></code><span style=3D"color: #660;" class=3D"styled-by-prettify=
">(...)</span><span style=3D"color: #000;" class=3D"styled-by-prettify"> &n=
bsp;_Pragma</span><span style=3D"color: #660;" class=3D"styled-by-prettify"=
>(</span><span style=3D"color: #800;" class=3D"styled-by-prettify">#__VA_AR=
GS__)</span><span style=3D"color: #000;" class=3D"styled-by-prettify"><br><=
/span><span style=3D"color: #800;" class=3D"styled-by-prettify">#define</sp=
an><span style=3D"color: #000;" class=3D"styled-by-prettify"> RAW_TOKENS_PR=
AGMA</span><span style=3D"color: #660;" class=3D"styled-by-prettify">(...)<=
/span><span style=3D"color: #000;" class=3D"styled-by-prettify"> &nbsp; RAW=
_TOKENS_PRAGMA2</span><span style=3D"color: #660;" class=3D"styled-by-prett=
ify">(</span><span style=3D"color: #000;" class=3D"styled-by-prettify">__VA=
_ARGS__</span><span style=3D"color: #660;" class=3D"styled-by-prettify">)</=
span><span style=3D"color: #000;" class=3D"styled-by-prettify"></span><span=
 style=3D"color: #000;" class=3D"styled-by-prettify"><br></span></div></cod=
e></div></div></div>

<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_942_342251634.1413925440498--

.
