Help with demangling

Brad Roberts braddr at puremagic.com
Mon Jan 11 23:32:53 PST 2010


On 1/11/2010 11:20 PM, grauzone wrote:
> g wrote:
>> Hi
>> Is there a way to demangle .mangleof strings at CTFE
>> or at least know the fully qualified name of a class or template
>> instance.
> 
> If you have to use such dirty tricks, you probably should consider to
> turn back NOW for your own good. D always lures you into doing tricky
> template and CTFE stuff, and then you end up either in compiler bugs or
> other dead ends.

And how do bugs get fixed?  Step one is finding them.. which typically involves
writing code that uses the features.  Secondarily, a good number of bugs have
been fixed over the last couple months, so re-exploring the area might well bear
good fruit.

Anyway, doom and gloom pronouncements like this aren't particularly helpful.

That said, demangling a symbol and using that inside compile time expressions
does sound like one good definition of hell, regardless of how well it works.

Later,
Brad



More information about the Digitalmars-d mailing list