ImportC and nothrow/@nogc?

Richard (Rikki) Andrew Cattermole richard at cattermole.co.nz
Thu Aug 22 07:38:08 UTC 2024


On 22/08/2024 6:54 PM, Paulo Pinto wrote:
> That is a special case, given how C++ is relevant in the Microsoft 
> ecosystem, and SEH existence, you won't find that in other platforms, 
> not even on UNIX where C++ was born alongside C.
> 
> I am not even sure that is even covered on Itanium ABI that most modern 
> compilers have meanwhile adopted on remaining UNIX platforms.

https://gcc.gnu.org/onlinedocs/libstdc++/manual/using_exceptions.html

"C language code that is expecting to interoperate with C++ should be 
compiled with -fexceptions. This will make debugging a C language 
function called as part of C++-induced stack unwinding possible."

Not quite as special as it may first appear. Unwinding tables are just 
not turned on by default.


More information about the Digitalmars-d mailing list