Catching C errors

data pulverizer data.pulverizer at gmail.com
Wed Oct 19 16:47:49 UTC 2022


On Wednesday, 19 October 2022 at 14:05:35 UTC, data pulverizer 
wrote:
> 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

It's okay, I've found a work around.


More information about the Digitalmars-d-learn mailing list