On Wednesday, 11 October 2023 at 12:36:58 UTC, Paul wrote:
What does the extern (c) attribute(?) do?
Does it tell the compiler/linker to build the function like a C compiler would build a C function? If so what does that mean? Does it tell the compiler/linker to let C functions know it exists? If so what does that mean?
Is it meant for the compiler or linker or both?

Thanks for any assistance.

It is about name mangling. It prevents symbol names from using D's name mangling.

https://dlang.org/blog/2017/12/20/ds-newfangled-name-mangling/

Reply via email to