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://ru
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
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?
On Monday, 1 July 2019 at 19:40:09 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?
If you've got undefined symbol "foo", you could just add thi
On Monday, 1 July 2019 at 19:40:09 UTC, Andrey wrote:
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?
try
pragma(mangle, "thing here")
void foo() {}
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?