How can I express the type of a function in D?
Ali Çehreli
acehreli at yahoo.com
Wed Jan 30 20:56:06 UTC 2019
On 01/30/2019 11:42 AM, H. S. Teoh wrote:
> 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
>
I remember names like _add. Is that a Windows thing?
Ali
More information about the Digitalmars-d-learn
mailing list