How can I express the type of a function in D?

H. S. Teoh hsteoh at quickfur.ath.cx
Wed Jan 30 19:42:26 UTC 2019


On Wed, Jan 30, 2019 at 10:39:21AM -0800, Ali Çehreli via Digitalmars-d-learn wrote:
[...]
> I wonder why the inconsistency. On the other hand, .mangleof produces
> just "add" when the function is extern(C).  (?)
[...]

For extern(C), this is correct behaviour, because that's how a C
function would be mangled (i.e., not mangled at all).


T

-- 
In a world without fences, who needs Windows and Gates? -- Christian Surchi


More information about the Digitalmars-d-learn mailing list