Actions

icon Post
text/html Subscribe
text/html Unsubscribe

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cxx-abi-dev] C++0x: Mangling of rvalue reference types


  • To: cxx-abi-dev@xxxxxxxxxxxxxxxx, doug.gregor@xxxxxxxxx
  • Subject: Re: [cxx-abi-dev] C++0x: Mangling of rvalue reference types
  • From: Dennis Handly <dhandly@xxxxxxxxxx>
  • Date: Thu, 28 Jun 2007 15:40:53 -0700 (PDT)

>From: "Doug Gregor" <doug.gregor@xxxxxxxxx>
>I suggest that rvalue references be mangled as 'RR' (lvalue references
>are mangled as 'R'). Since we can't have a reference-to-reference,
>there is no ambiguity.
     <type> ::= RR <type>   # rvalue reference-to

Generating this is easy.  Demangling would need a simple look ahead to
look for both.

Would using up another capital letter solve this trivial issue and save
more space?  We could use "B".  ;-)

(We do have two letter combos in TV TT TI TS and in ctor/dtor names.)