www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Mixin mangled name

reply Andrey <saasecondbox yandex.ru> writes:
Hello,
Is it possible to mixin in code a mangled name of some entity so 
that compiler didn't emit undefined symbol error? For example 
mangled function name or template parameter?
Jul 01 2019
next sibling parent bauss <jj_1337 live.dk> writes:
On Monday, 1 July 2019 at 23:52:49 UTC, Andrey wrote:
 Hello,
 Is it possible to mixin in code a mangled name of some entity 
 so that compiler didn't emit undefined symbol error? For 
 example mangled function name or template parameter?
Perhaps: https://dlang.org/spec/pragma.html#mangle
Jul 02 2019
prev sibling parent Basile B. <b2.temp gmx.com> writes:
On Monday, 1 July 2019 at 23:52:49 UTC, Andrey wrote:
 Hello,
 Is it possible to mixin in code a mangled name of some entity 
 so that compiler didn't emit undefined symbol error? For 
 example mangled function name or template parameter?
Yes. An example from the DMD test suite itself : https://run.dlang.io/is/ctq77S
Jul 03 2019