On Monday, 24 January 2022 at 17:23:01 UTC, frame wrote:

I understand that the linkage must match but besides the name mangling, what's happen here? What is the difference if I remove the `extern (C)` part from the T alias?

The difference is in how arguments are being passed, which you seem to have discovered already :)

Would like to know where the linkage format is defined, thx.

It should be here: https://dlang.org/spec/abi.html although IIRC it might not be 100% up to date.

Reply via email to