RFC: new __cxa_demangle

Mark Mitchell mark@codesourcery.com
Thu Feb 20 21:54:00 GMT 2003



--On Wednesday, February 19, 2003 06:31:04 PM -0600 Benjamin Kosnik 
<bkoz@redhat.com> wrote:

>
>> FWIW, it would be nice to have a demangler that other implementations
>> of the C++ Standard library could use :)
>
> You already do: libiberty/cp-demangle.c. You might want to look at it.
>
> Sorry, you have not persuaded me. I'd like to try this new
> implementation out.

I think it's a mistake to do a new implementation in C++.

I think that the demangler should be written in C as an independent module 
so that it can be used in programs that are not written in C++.  And I 
think that having two demanglers just makes things worse; now they can be 
out of synch in all sorts of weird ways.

Sorry to be negative,

-- 
Mark Mitchell                mark@codesourcery.com
CodeSourcery, LLC            http://www.codesourcery.com



More information about the Libstdc++ mailing list