Why are extern(C/C++) definitions and references mangled differently in separately compiled modules?

Jacob Carlborg doob at me.com
Sat Sep 7 13:01:38 UTC 2019


On 2019-09-06 21:03, Max Samukha wrote:

> Is there any practical use of having identically named .d and .di 
> alongside?

Same as in C/C++. This allows you to have a header file if you want to 
distribute a closed source library.

-- 
/Jacob Carlborg


More information about the Digitalmars-d-learn mailing list