Re: [m-users.] Error handling in io module
Volker Wysk <[email protected]>
| Newsgroups | gmane.comp.lang.mercury.general |
|---|---|
| Message-ID | <[email protected]> |
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. Volker _______________________________________________ users mailing list [email protected] https://lists.mercurylang.org/listinfo/users
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEE6QXGh82Ov3+2nrxp+K4ydFOsHoUFAmPokU0ACgkQ+K4ydFOs HoUheRAA07zD38neUAY6YohUoRTQtxZNiG8PpY0Jaf6gdBpCCqHa68Al7IVaYdYX BRrkXq1iTDm9gFZ2+eebBgokivWQn4sQamcLssQil3JHw9gAEhlt8YJCkDoPcrJF ZiYNXuEwnsHWmgRSUH6VxKvEZMl7rVT8DWQNIm8mZ6DJdun7fxVR72Kd4Tlcr1Ga 3MlsxeNZ+UTG46Xxa8S9OJ8IdKYC05UuRYACA8p41v/bnkYvSDGiclR08OnSt+KI er9nGlbR96jZ0zcsHAF/MZKiaU+WWH/u60MamI24ZKxEPJ6rRgzAdhKx9wAckxR+ i2E9MlvsHiMwn5eod5csQdtuLuJ6m1K8I8my3rEinRVd5lwcaEIe2Nj3Wlc9yKdU gkArCfiIn8T6L6Ht0iu1fXWnPrW00XRcbLGblo4bGBUI9TvM3wJKS8nwK760xigO THdF4vbfZ1JWBJvc+wGsIKdvk8ZnG6oRq3XfqX2jdFQ73P4rs/Jhzy2iHBNV/NAi D7fhg72qJ7gtUpDZVU9JSz693nyvJZB+VwidqrPZXe+mDelLO0Esi7LoHmqWRXFj bmcQ8El7TcS8FjBPVxuDRrakIRwGOo5c6ATsxnE72eeM4iJ9a3D/KeXt2IbsJNDe 6T14opVqn0iBDDI7oQRuVoO6CG/E7Qew/3j0qj6PUvy0nl9B+ag= =KuUc -----END PGP SIGNATURE-----