August 27, 2020 Re: const(Class) is mangled as Class const* const | ||||
---|---|---|---|---|
| ||||
Posted in reply to Nathan S. | On Wednesday, 26 August 2020 at 00:41:18 UTC, Nathan S. wrote:
> I just ran into this problem too. Is there some way around this with pragma(mangle)?
For anyone else wondering: it turns out yes, pragma(mangle) works even with virtual functions. I didn't find a convenient way of generating the mangling other than inspecting the object file and copying the mangled name by hand, but that works fine for a small number of functions.
|
Copyright © 1999-2021 by the D Language Foundation