On Fri, 02 Jan 2015 10:40:22 +0000 novice2 via Digitalmars-d-learn <digitalmars-d-learn@puremagic.com> wrote:
> Thanx Daniel, thanx Ketmar. > > I just thinked that this is some sort of bug. > May be DMD should not change mangled name of external function... > Bit i dont know. with `extern(C)` it didn't. what you probably not realised is that D has nested functions, so extern which declared inside other function becomes right this: an extern nested function. that's why D compiler mangles it's name. there are no nested functions in C, but D is not C. ;-)
signature.asc
Description: PGP signature