Boost logo

Boost :

From: Douglas Gregor (gregod_at_[hidden])
Date: 2002-01-21 09:04:02


On Monday 21 January 2002 06:53 am, you wrote:
> //! Drops the first N elements of the list.
> /*!
> Example:
>
> BOOST_PP_LIST_DROP(2,BOOST_PP_TUPLE_TO_LIST(4,(+,-,*,/)))
>
> Expands to a list containing * and /.
> */
> #define BOOST_PP_LIST_DROP(N,L)

"Drop" doesn't really tell us anything about what's being dropped. How about
using REMOVE_FIRST instead, e.g.,

BOOST_PP_REMOVE_FIRST(2,BOOST_PP_TUPLE_TO_LIST(4,(+,-,*,/)))

Or, perhaps, to save typing, use REMOVE1ST.

Otherwise, the naming is good, and the new facilities are very cool. I think
the next step is to write a C->Boost.Preprocessor compiler :)

        Doug


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