Boost logo

Boost :

Subject: Re: [boost] [Preprocessor] Adding variadic macros support
From: Jeffrey Lee Hellrung, Jr. (jhellrung_at_[hidden])
Date: 2010-11-24 16:29:15


On 11/24/2010 1:09 PM, Edward Diener wrote:
> On 11/24/2010 2:31 PM, Jeffrey Lee Hellrung, Jr. wrote:
[...]
>>> Questions, comments, suggestions etc. are all welcome regarding my
>>> library.
>>
>> I think macro composition and argument binding like that supported in
>> Chaos/Order (forgive me, I'm not really sure what the difference is)
>> would be great.
>
> Please be specific. Remember that the focus of my library was strictly
> to be able to use variadic macros easily along with Boost PP. I was not
> trying to do much more than that because I wanted to merely support what
> already exists in Boost PP with the addition of using variadic macros
> easily with it. I do not mind trying for more but I want to stay within
> the confines of what can be done with variadic macros to work with the
> current Boost PP.

To be specific: If one proposes to add an additional preprocessor
library to boost, or an extension of Boost.PP, I only think one should
also consider adding macro composition and argument binding, such as
that in Chaos/Order or Avalanche (the [2] reference below). I brought
it up under the context of limitations of the current Boost.PP interface.

> Also if Chaos/Order can do these things you may want it might be a good
> bet that they can not be done with the many of the compilers which Boost
> supports.

True. How many compilers support your variadic macro library? It
sounds like you've worked around many of MSVC's shortcomings, so I'm
assuming most modern compilers. Perhaps I should be browsing through
the docs/code...

>> I remember another individual posting a link to a
>> preprocessor library in the past on the developer's mailing list that
>> did something similar [2].
>>
>> [1] http://sourceforge.net/projects/chaos-pp/
>
> On this site I see no files which can be accessed. Perhaps there is a
> way to access these files via cvs but I do not see instructions for
> doing so.

Same question (and answer) is in one of the messages in [2] below.

>> [2] http://lists.boost.org/Archives/boost/2010/01/160619.php
>
> I do not know who this is and surely, whoever it is, he needs to put his
> work somewhere ( sandbox, vault ) where it can be found by others.

Agreed; I had thought I had the code stashed away somewhere but I can't
seem to find it.

> Thanks for your interest in my library.

Boost.PP is already really awesome, but I welcome any facilities that
make preprocessor metaprogramming a little easier.

- Jeff


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk