mangle
Rory McGuire
rmcguire at neonova.co.za
Fri Jul 2 10:21:23 PDT 2010
On Fri, 02 Jul 2010 18:17:03 +0200, Ellery Newcomer
<ellery-newcomer at utulsa.edu> wrote:
> On 07/01/2010 08:16 PM, Adam Ruppe wrote:
>> http://dpldocs.info/std.demangle
>
> import std.demangle;
> import std.stdio;
> void main(){
>
> writeln(demangle("_D3std6random156__T11RandomCoverTAiTS3std6random98__T21MersenneTwisterEngineTkVi32Vi624Vi397Vi31Vk2567483615Vi11Vi7Vk2636928640Vi15Vk4022730752Vi18Z21MersenneTwisterEngineZ11RandomCover4saveMFNdZS3std6random156__T11RandomCoverTAiTS3std6random98__T21MersenneTwisterEngineTkVi32Vi624Vi397Vi31Vk2567483615Vi11Vi7Vk2636928640Vi15Vk4022730752Vi18Z21MersenneTwisterEngineZ11RandomCover"));
> }
>
> gives
>
> _D3std6random156__T11RandomCoverTAiTS3std6random98__T21MersenneTwisterEngineTkVi32Vi624Vi397Vi31Vk2567483615Vi11Vi7Vk2636928640Vi15Vk4022730752Vi18Z21MersenneTwisterEngineZ11RandomCover4saveMFNdZS3std6random156__T11RandomCoverTAiTS3std6random98__T21MersenneTwisterEngineTkVi32Vi624Vi397Vi31Vk2567483615Vi11Vi7Vk2636928640Vi15Vk4022730752Vi18Z21MersenneTwisterEngineZ11RandomCover
>
>
> There wouldn't happen to be any other demanglers about, would there?
Perhaps make one or fix the std one. The mangle definition seems to be in
mtype.c:193 and in template.c:4480 there is genIdent which seems to
generate the template identifier not sure though (Just had a quick look
for the 'V' char in the mangled symbol you have here).
-Rory
More information about the Digitalmars-d
mailing list