|
Boost : |
From: Eric Niebler (eric_at_[hidden])
Date: 2004-09-06 00:23:12
Jonathan Turkanis wrote:
> "Eric Niebler" <eric_at_[hidden]> wrote:
>>2) s1 kind of looks like $1, which is the perl equivalent.
>
>
> I didn't think of 2). Did you put in in the docs?
No. Guess I should.
> FWIW, capital 'S' looks more
> like '$' to me. E.g.,
>
> '<' >> (S1= +_w) >> '>' >> -*_ >> "</" >> S1 >> '>'
This is true, but it runs contrary to Boost's naming conventions. ALL
CAPS is for macros.
>
>>That said, I'm open to suggestions for avoiding the name conflicts. I
>>would consider switching back to _1 _2 _3 if the technical problems were
>>overcome and if people liked it better.
>
>
> May I assume you have considered reusing the placeholders from boost::bind?
> There doesn't seem to be much operator overloading involving boost::arg<>.
I thought of that. Trouble is, xpressive's placeholders need to have an
operator=, which must be a member. Besides, I rely on ADL to find
xpressive's operators, and bind's placeholders are not in the correct
namespace for my purposes.
-- Eric Niebler Boost Consulting www.boost-consulting.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk