www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - mangledName!(U) not working?

reply %u <wfunction hotmail.com> writes:
Hi all,

I'm trying the code below:

class Temp
{
	int field;
	pragma(msg, mangledName!(field));
}

and getting this printed: "DummyS25_D4ntfs5types4Temp5fieldi"

Obviously this isn't correct (the "Dummy" should've been removed)... so am I
missing something, or is this a bug? I searched a bit on the forums but
couldn't find anything.

Thank you!
Dec 31 2010
next sibling parent Andrej Mitrovic <andrej.mitrovich gmail.com> writes:
I think I've run into the same issue:
www.mail-archive.com/digitalmars-d puremagic.com/msg45256.html

std.demangle will be updated in the next release, otherwise you have
to use core.demangle for now.

On 1/1/11, %u <wfunction hotmail.com> wrote:
 Hi all,

 I'm trying the code below:

 class Temp
 {
 	int field;
 	pragma(msg, mangledName!(field));
 }

 and getting this printed: "DummyS25_D4ntfs5types4Temp5fieldi"

 Obviously this isn't correct (the "Dummy" should've been removed)... so am I
 missing something, or is this a bug? I searched a bit on the forums but
 couldn't find anything.

 Thank you!
Dec 31 2010
prev sibling parent Sean Kelly <sean invisibleduck.org> writes:
%u Wrote:

 Hi all,
 
 I'm trying the code below:
 
 class Temp
 {
 	int field;
 	pragma(msg, mangledName!(field));
 }
 
 and getting this printed: "DummyS25_D4ntfs5types4Temp5fieldi"
 
 Obviously this isn't correct (the "Dummy" should've been removed)... so am I
 missing something, or is this a bug? I searched a bit on the forums but
 couldn't find anything.
It doesn't work and I wasn't entirely sure what it was supposed to do so I left it undocumented to represent its uncertain status. Tell me what you expected and I should be able to take care of it.
Jan 01 2011