[Issue 14933] specifications for the pragma(mangle) are vague

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Aug 18 19:24:50 PDT 2015


https://issues.dlang.org/show_bug.cgi?id=14933

--- Comment #2 from Kenji Hara <k.hara.pg at gmail.com> ---
`pragma(mangle)` is intended to affect the name of symbols those have linkable
data.

In plain old "compile and link" model, only functions and variables can have
symbol names in link-time (function is a named collection of cpu instructions,
and variable is a named data).

Templates, template instances, and any user defined types (struct, class,
union, and interface) - the scoped symbols in D have no linkable data, because
they're just compile-time entity.

That's why it affects only functions and variables.

--


More information about the Digitalmars-d-bugs mailing list