pragma(mangle) on types

Jacob Carlborg via Digitalmars-d digitalmars-d at puremagic.com
Tue Jul 11 07:14:56 PDT 2017


On 2017-07-11 15:25, Moritz Maxeiner wrote:

> Thinking about this a bit more it might make sense to introduce another 
> pragma, e.g.
> `pragma(name, "...")`, which would essentially mean "the identifier used 
> in the declaration this pragma applies to is chosen for identifier 
> restrictions in D; use the identifier specified by the pragma as the 
> starting point for mangling instead",

Yeah, that makes sense. I didn't really think about that the C++ mangler 
might use something slightly different than the exact symbol name.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list