ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> boost
boost
Re: [boost] Re: ATTN: All Developers Interested in Boost.Preprocessor
by Rene Rivera other posts by this author
May 1 2003 1:57AM messages near this date
[boost] Re: ATTN: All Developers Interested in Boost.Preprocessor | Re: [boost] Re: ATTN: All Developers Interested in Boost.Preprocessor
[2003-04-30] Paul Mensonides wrote:

> David Abrahams wrote:
> > ** and which I'm not sure is even addressing a real-world problem.  It
> >    might be; I am just not sure.
> 
> It is not something that can't be worked around, but it is a nuisance.
> Basically, you have to expand a macro to produce a comma--but do it only at
the
> last possible step so it doesn't go through any other macros.  The problem
is
> not that so much.  Rather, it implies that you have to pass everything else
as
> such an "invocable" entity--which is annoying at best.

If that's the case would not a more general utility to insert/escape
literals be desirable.

Perhaps adding an #escape or #literal command to the preprocessor which only
replaces the argument as the last stage after all other replacements?

And to rephrase Vesa's example...

#define ID(x) x
ID( #escape "("                             )
ID(             a #escape "," b             )
ID(                             #escape ")" )



-- grafik - Don't Assume Anything
-- rrivera@[...].org - grafik@[...].com
-- 102708583@icq
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Thread:
Vesa Karvonen
Paul Mensonides
David Abrahams
Rene Rivera
Paul Mensonides
Rene Rivera
Paul Mensonides
Rene Rivera
Paul Mensonides
Rene Rivera
Paul Mensonides
David Abrahams
Beman Dawes
Hartmut Kaiser
David Abrahams
Beman Dawes
David Abrahams

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved