const(Class) is mangled as Class const* const

Nathan S. no.public.email at example.com
Thu Aug 27 00:33:35 UTC 2020


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.


More information about the Digitalmars-d mailing list