Catching C errors

ryuukk_ ryuukk.dev at gmail.com
Wed Oct 19 21:26:09 UTC 2022


On Wednesday, 19 October 2022 at 16:47:49 UTC, data pulverizer 
wrote:
> 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.

Always good to share what it is, for future readers who have the 
same question


More information about the Digitalmars-d-learn mailing list