Catching C errors

data pulverizer data.pulverizer at gmail.com
Wed Oct 19 14:05:35 UTC 2022


Hi all,

I am calling code from a C API, and would like to know how to 
catch exit errors so that they can be handled and make them more 
like an exceptions so that the computation can continue. I've 
tried something similar to what is outlined here: 
https://dlang.org/phobos/object.html#.Error but it doesn't work, 
the process dies in the try block.

Thanks


More information about the Digitalmars-d-learn mailing list