[m-users.] Error handling in io module
Volker Wysk
post at volker-wysk.de
Mon Feb 13 22:46:49 AEDT 2023
Am Montag, dem 13.02.2023 um 22:35 +1100 schrieb Julien Fischer:
> On Sun, 12 Feb 2023, Volker Wysk wrote:
>
> > Am Sonntag, dem 12.02.2023 um 10:48 +1100 schrieb Julien Fischer:
> > > 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).
> >
> > That's what I have in mind.
>
> The above predicate is present as of rotd-2023-02-13.
Thanks!
Volker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://lists.mercurylang.org/archives/users/attachments/20230213/2b1fb518/attachment.sig>
More information about the users
mailing list