Re: [m-users.] Error handling in io module
Julien Fischer <[email protected]>
| Newsgroups | gmane.comp.lang.mercury.general |
|---|---|
| Message-ID | <[email protected]> |
Hi, On Sat, 11 Feb 2023, Volker Wysk wrote: > I suggest to add a test to the io module, for an error being zero. Meaning > no error / success. This could be a constant, say "error_success", or a > predicate "error_is_success/1". We can add the predicate "system_error_is_success/1" which will succeed when the value matches the success condition for the system_error/0 type (i.e. zero for errno or Windows errors and null for the Java or C# backends). Julien. _______________________________________________ users mailing list [email protected] https://lists.mercurylang.org/listinfo/users