I'd use it. And any characters usable as a jump label in ask should be accepted. OSX does some weird macro mangling of some posix functions and short of a C or asm trampoline these can't be called in D.
Sent from my iPhone On Jun 11, 2011, at 1:47 PM, "Daniel Murphy" <yebbl...@nospamgmail.com> wrote: > Stealing the idea from http://d.puremagic.com/issues/show_bug.cgi?id=2698, > I've implemented pragma(mangle). > > Basically, > pragma(mangle, "_mangled__name_") > void myfunction() {} > > Will cause the compiler to use "_mangled__name_" as the function's mangle > string. > > Would many people find this a useful thing to have in the compiler? > > Also, does anybody know what set of characters to accept in a mangle string? > >