On Friday, 20 February 2015 at 12:23:31 UTC, Benjamin Thaut wrote:
On Thursday, 19 February 2015 at 21:34:57 UTC, John Colvin
wrote:
I would duplicate the declaration, once without extern(C++),
once with, the use the .mangleof from the 1st to set the
mangle of the 2nd with pragma(mangle
Yes that would work. But using pragma(mangle) feels so hacky...
I agree. Wrap it in a mixin / mixin template?
Why do you need this? Presumably it'll be hidden in the depths of
some library / bindings where beauty is somewhat optional? Using
the .mangleof from an extern(D) function should mean it's robust.