digitalmars.D - mangledName!(U) not working?
- %u <wfunction hotmail.com> Dec 31 2010
- Andrej Mitrovic <andrej.mitrovich gmail.com> Dec 31 2010
- Sean Kelly <sean invisibleduck.org> Jan 01 2011
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
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
%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









Andrej Mitrovic <andrej.mitrovich gmail.com> 