A new debugger for Linux - would it work for D?
Frits van Bommel
fvbommel at REMwOVExCAPSs.nl
Thu Nov 23 03:28:22 PST 2006
Bruno Medeiros wrote:
> Can we define functions that do not have D linkage, but have D name
> mangling?
Not as far as I know.
> If so, does that even make sense? It was my understanding that
> any function with linkage other than D is used for obj/lib/dll level
> compatibility with other programs written in other languages (i.e., ABI
> level compatibility). As such, these other languages don't understand D
> name mangling but only C name mangling, so what's a non-D-linkage with
> D-name-mangling for?
I have on several occasions declared functions as extern(C) in order to
be able to access them from inline assembly. I needed to be sure about
the calling convention, and at that time the D calling convention wasn't
documented as well as it is now. (http://www.digitalmars.com/d/abi.html)
Name mangling is wholly irrelevant to this, though. In fact my
backtraces would've looked better if all names had D mangling, so I
would have liked name mangling to have been preserved.
More information about the Digitalmars-d-announce
mailing list