Is std.demangle usable?

kenji hara k.hara.pg at gmail.com
Thu Dec 23 09:12:06 PST 2010


Sorry, current dmd does't provide the mangled name from function symbol.
see http://d.puremagic.com/issues/show_bug.cgi?id=2774

2010/12/24 kenji hara <k.hara.pg at gmail.com>:
> I tested this issue.
> I think mangledName does not support nested function.
> I'll try to resolve it.
>
> Kenji Hara
>
> 2010/12/23 Andrej Mitrovic <none at none.none>:
>> import std.stdio;
>> import std.demangle;
>> import std.traits;
>>
>> void main()
>> {
>>    void test()
>>    {
>>    }
>>
>>    auto mystr = mangledName!(test); // ----------- demangle4mainFAAyaZv4testMFZv
>>    writeln(demangle(mystr));        // writes back demangle4mainFAAyaZv4testMFZv
>> }
>>
>> Also, the example code is broken in http://www.digitalmars.com/d/2.0/phobos/std_demangle.html
>>
>


More information about the Digitalmars-d mailing list