220 14106 <da6cdd6b-ca25-42b6-86ff-6217b9c11c44@isocpp.org> article
Path: news.gmane.org!not-for-mail
From: Myriachan <myriachan@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: #pragma once
Date: Tue, 21 Oct 2014 19:03:52 -0700 (PDT)
Lines: 80
Approved: news@gmane.org
Message-ID: <da6cdd6b-ca25-42b6-86ff-6217b9c11c44@isocpp.org>
References: <3d0ab5b0-73d9-434a-9ae4-cd47d8275590@isocpp.org>
 <59ae3383-67a5-4a4c-b301-06cf148c9df6@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; 
	boundary="----=_Part_4963_1945122689.1413943432607"
X-Trace: ger.gmane.org 1413943443 3828 80.91.229.3 (22 Oct 2014 02:04:03 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Wed, 22 Oct 2014 02:04:03 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBDKLT4PURQHRBCVBTSRAKGQEAOX3JTY@isocpp.org Wed Oct 22 04:03:57 2014
Return-path: <std-proposals+bncBDKLT4PURQHRBCVBTSRAKGQEAOX3JTY@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-ob0-f200.google.com ([209.85.214.200])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBDKLT4PURQHRBCVBTSRAKGQEAOX3JTY@isocpp.org>)
	id 1XglHH-0007SI-Ii
	for gclcip-std-proposals@m.gmane.org; Wed, 22 Oct 2014 04:03:55 +0200
Original-Received: by mail-ob0-f200.google.com with SMTP id wn1sf10633484obc.7
        for <gclcip-std-proposals@m.gmane.org>; Tue, 21 Oct 2014 19:03:54 -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=l7qt8/SRHQRcM9XGbkamUWmT2Xge5d9CiSsh8YknNf8=;
        b=y09vm0Z24Vuw6F3+FmwksTvU6Wbg9l0zqOXGGopHgKhlkGgYGsPY24RM3tYW6+xavk
         v+QLiDil7tv5CBx1MExeKSGkFuJ7eR517lfqr+ZKr/uGlxgiEXF0G0WzoYAHAcuavTjL
         NvnCuNXgfUmUGb9byrthbdHmGy+gi6W+LU1ehugauEZpvc+1QPbwtlMDq+OBohvhW/4e
         w1rD9KJ52++gMcEMhxIkKAPSJzon0vHnTKx1V0ki8Xi5Qb5bSa3+uD4kazI5agpiQnaE
         PmmT9BNG3mARwn6gl9QAwL9mlt6GVNpwMAyGqcAX0gOWhY23GLKPp7QErgcLWd0doMpr
         iH/A==
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=l7qt8/SRHQRcM9XGbkamUWmT2Xge5d9CiSsh8YknNf8=;
        b=UwYDzaFzwUWR6GfK/byNUgDq2FSX85uZ5e+17g8qhSAFzDul26pZUxlxLz6idZ9T+H
         /BSGaERbz0Jz2zNienxHGp4kSVOlwG9mF80wmXEvYTIgLUwMDkrDeVrgeDclwD4OUDEe
         rw1hwMh+KBoLELTLdNpP6eJZxwXQtcch0OKjmJPZwFA3uB6x+BYdXxqsjTPbeiBrahGK
         A+Qv593FVW0GpXgLQgsiddUCfqquwBaCnDfawnGlQuDklLKpSe8Min9RLmv5BGZWf0Gs
         T/XLimBqvFUEwBtGHe6eKr7fEYlB/eUbGHc06pJFkYrwrgOJJF/w3Mq0MrdME3TfPGqR
         AORw==
X-Gm-Message-State: ALoCoQlgKU/xxos9rML4EBS7iD3lXs8+HbqkErkwFIVUKw/bRRMvzxPBPDD4Gv6l3ap81BX/sF7V
X-Received: by 10.182.247.101 with SMTP id yd5mr24416817obc.41.1413943434644;
        Tue, 21 Oct 2014 19:03:54 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.50.80.109 with SMTP id q13ls1145840igx.20.canary; Tue, 21 Oct
 2014 19:03:54 -0700 (PDT)
X-Received: by 10.50.78.135 with SMTP id b7mr28105igx.14.1413943434157;
        Tue, 21 Oct 2014 19:03:54 -0700 (PDT)
In-Reply-To: <59ae3383-67a5-4a4c-b301-06cf148c9df6@isocpp.org>
X-Original-Sender: myriachan@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:14106
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/14106>

------=_Part_4963_1945122689.1413943432607
Content-Type: text/plain; charset=UTF-8

On Tuesday, October 21, 2014 2:04:00 PM UTC-7, Christopher wrote:
>
> 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__)
>

Could we then define _Pragma as taking one or more string parameters (not 
separated by anything but possibly whitespace) that are interpreted 
concatenated?

Melissa

-- 

--- 
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_4963_1945122689.1413943432607
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">On Tuesday, October 21, 2014 2:04:00 PM UTC-7, Christopher=
 wrote:<blockquote class=3D"gmail_quote" style=3D"margin: 0;margin-left: 0.=
8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir=3D"ltr"><block=
quote class=3D"gmail_quote" style=3D"margin:0;margin-left:0.8ex;border-left=
:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr">By the way, why don't <s=
pan style=3D"font-family:courier new,monospace">_Pragma</span> and <span st=
yle=3D"font-family:courier new,monospace">#line</span> support concatenatin=
g multiple strings in their respective string parameters?<br></div></blockq=
uote><div><br>String concatenation happens later (Phase 6). For _Pragma, th=
is is not too bad if you're willing to build up <i>unquoted </i>pp-tokens a=
nd pass them to a wrapper-macro:<br><br><div style=3D"background-color:rgb(=
250,250,250);border-color:rgb(187,187,187);border-style:solid;border-width:=
1px;word-wrap:break-word"><code><div><span style=3D"color:#800">#define</sp=
an><span style=3D"color:#000"> </span><code><span style=3D"color:#000">RAW_=
TOKENS_PRAGMA2</span><span style=3D"color:#660"></span></code><span style=
=3D"color:#660">(...)</span><span style=3D"color:#000"> &nbsp;_Pragma</span=
><span style=3D"color:#660">(</span><span style=3D"color:#800">#__VA_ARGS__=
)</span><span style=3D"color:#000"><br></span><span style=3D"color:#800">#d=
efine</span><span style=3D"color:#000"> RAW_TOKENS_PRAGMA</span><span style=
=3D"color:#660">(...)</span><span style=3D"color:#000"> &nbsp; RAW_TOKENS_P=
RAGMA2</span><span style=3D"color:#660">(</span><span style=3D"color:#000">=
__VA_ARGS__</span><span style=3D"color:#660"><wbr>)</span><span style=3D"co=
lor:#000"></span><span style=3D"color:#000"><br></span></div></code></div><=
/div></div></blockquote><div><br>Could we then define _Pragma as taking one=
 or more string parameters (not separated by anything but possibly whitespa=
ce) that are interpreted concatenated?<br><br>Melissa<br></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_4963_1945122689.1413943432607--

.
