mangledName!(U) not working?

Sean Kelly sean at invisibleduck.org
Sat Jan 1 08:44:16 PST 2011


%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.


More information about the Digitalmars-d mailing list