220 8733 <52DCE5B4.8090704@eudoxos.de> article
Path: news.gmane.org!not-for-mail
From: Roland Bock <rbock@eudoxos.de>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: "Raw" preprocessor macro arguments
Date: Mon, 20 Jan 2014 10:00:36 +0100
Lines: 25
Approved: news@gmane.org
Message-ID: <52DCE5B4.8090704@eudoxos.de>
References: <c0398870-b265-4d02-a814-ad84a472520c@isocpp.org> <3fc9f495-0bb2-4432-bb79-385fe222feab@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
X-Trace: ger.gmane.org 1390208434 25554 80.91.229.3 (20 Jan 2014 09:00:34 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Mon, 20 Jan 2014 09:00:34 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCO7PYWVVELRBNOL6OLAKGQESRAHL7Q@isocpp.org Mon Jan 20 10:00:41 2014
Return-path: <std-proposals+bncBCO7PYWVVELRBNOL6OLAKGQESRAHL7Q@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-fa0-f69.google.com ([209.85.161.69])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCO7PYWVVELRBNOL6OLAKGQESRAHL7Q@isocpp.org>)
	id 1W5Aik-000692-LK
	for gclcip-std-proposals@m.gmane.org; Mon, 20 Jan 2014 10:00:38 +0100
Original-Received: by mail-fa0-f69.google.com with SMTP id a10sf4903022fad.0
        for <gclcip-std-proposals@m.gmane.org>; Mon, 20 Jan 2014 01:00:38 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to
         :subject:references:in-reply-to:x-original-sender
         :x-original-authentication-results:reply-to:precedence:mailing-list
         :list-id:list-post:list-help:list-archive:list-subscribe
         :list-unsubscribe:content-type;
        bh=nU9NCrLjJd9s3lphtAzmp57eWLfbAlm69WhtSuqpUUk=;
        b=Ec71N5NkhYwUPTzvqjt/gy2Skvwn27caMcVFq5ytIpbA0cP3IC0yXCnai4zgs7Oq2s
         8V+wSOGQjCLdp1dpv18H1H4i37ommktdun5BMdbo/iVppfDgBAAbsNCpvWa8KnLJV3cB
         9u2jxu4USwpmLuX/DUWvWMir4fSl1/WpLjoHR/tqWtAfHEO8W+LN4sCaz1Ukh0toMq3U
         RZPUUg0q5ojt7d5pbuXBaPh4bDCEVliexXuRDFJWJuF6xExj8BHn3hkeKFvt2GMDzS6O
         IIi8+NFSanQHeZ7USfAwqxFkdKd53NnK9LBnq1xNSQL/P7FtCzpwq4/tlvFfdNbw195h
         GeXg==
X-Gm-Message-State: ALoCoQmd82nJgeqcgPNkr10GYEuBEFJQWoRbbmDqK8mOnjOOI+Alfhk83H3OTKev9ogibwOnh7Rk
X-Received: by 10.112.64.203 with SMTP id q11mr7652555lbs.10.1390208437994;
        Mon, 20 Jan 2014 01:00:37 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.180.85.103 with SMTP id g7ls400834wiz.14.gmail; Mon, 20 Jan
 2014 01:00:37 -0800 (PST)
X-Received: by 10.14.101.73 with SMTP id a49mr682033eeg.100.1390208437081;
        Mon, 20 Jan 2014 01:00:37 -0800 (PST)
Original-Received: from moutng.kundenserver.de (moutng.kundenserver.de. [212.227.126.186])
        by mx.google.com with ESMTPS id h45si902923eeo.88.2014.01.20.01.00.36
        for <std-proposals@isocpp.org>
        (version=TLSv1 cipher=RC4-SHA bits=128/128);
        Mon, 20 Jan 2014 01:00:36 -0800 (PST)
Received-SPF: neutral (google.com: 212.227.126.186 is neither permitted nor denied by best guess record for domain of rbock@eudoxos.de) client-ip=212.227.126.186;
Original-Received: from [172.30.200.118] ([194.97.158.70])
	by mrelayeu.kundenserver.de (node=mreu3) with ESMTP (Nemesis)
	id 0M3I9M-1VEAWi1hGy-00r1s0; Mon, 20 Jan 2014 10:00:36 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0
In-Reply-To: <3fc9f495-0bb2-4432-bb79-385fe222feab@isocpp.org>
X-Provags-ID: V02:K0:3qptFQDM2rAfBIyrrWtsHLfaFlWKVQEH5g7vxngHMRq
 VGPRM6TVXnaYxS/pPpF8VCs0pyrjEtiFSRYR3RpplrgXGDB2Rw
 t1sgOy8AhknlB2YGs73v1HcNP6KoqNC7hMYa2dZ8vAd0y+ysO1
 VBIdO5gS/wk2sONHx0F6InQLnsJXsxnalxlHGbGbH+jjkWzk6x
 9JkJrJHxLnVPpHJytaH+JK9YdLto1J8ZUcnFzg/avBEDfk6Gz1
 9zwF1N9Qrrhw4PuvX+H9rdXhIFDx5L4IDKLhwGsfHMQxjY4tYr
 Eqry8ODdiaGOY5z68F0ZBN5kI+deWr2zG4LA+z/LuDH48f6ryg
 ECou6XG1zPCuvOXmLf1E=
X-Original-Sender: rbock@eudoxos.de
X-Original-Authentication-Results: mx.google.com;       spf=neutral
 (google.com: 212.227.126.186 is neither permitted nor denied by best guess
 record for domain of rbock@eudoxos.de) smtp.mail=rbock@eudoxos.de
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: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:8733
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/8733>

On 2014-01-20 09:53, Vittorio Romeo wrote:
> http://ideone.com/B5hVDS
>
> This example shows un-intuitive behavior.
> The "raw argument" is actually passed as multiple arguments, and does
> not expand correctly.
>
> I would expect the program to print "1, 2, 3" or "1,2,3" - instead, it
> fails to compile.
>
Did not check the other examples, but how about this:

#define RAW(...) (__VA_ARGS__)


http://ideone.com/DXXOXP (works as expected)

-- 

--- 
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/.

.
