[cxx-abi-dev] C++0x: Mangling for variadic templates

Doug Gregor doug.gregor at gmail.com
Mon Jul 2 20:08:50 UTC 2007


On 7/2/07, Daveed Vandevoorde <daveed at edg.com> wrote:
> >  <type> ::= Dp <type>  # pack expansion of (C++0x)
> >  <template-arg> ::= sp <expression>            # pack expansion of
> > (C++0x)
>
>
> I'm curious why you chose those particular codes?  I'm guessing there
> is a mnemonic at play (p = pack?), but I'm not sure which it is.

Yes, "p=pack". "s" seemed to be used elsewhere in <expression> for
various operators, and I didn't want to take another single-letter
code. 'D' was just convenience, and again, I'm getting nervous about
single-character codes, so I decided to turn 'D' into a prefix that we
can use for more types later on.

  - Doug



More information about the cxx-abi-dev mailing list