Re: [m-users.] Error handling in io module

Volker Wysk <[email protected]>
Newsgroups gmane.comp.lang.mercury.general
Message-ID <[email protected]>
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

_______________________________________________
users mailing list
[email protected]
https://lists.mercurylang.org/listinfo/users
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEE6QXGh82Ov3+2nrxp+K4ydFOsHoUFAmPqIykACgkQ+K4ydFOs
HoXl5BAAo+imiOMfd1eC0cK/Tii+wO7yufp3NCNTsVZgxZ+bFu9XWXjyZGyPzMyF
XZ1YK5hweZ3zAYADQGHL8HZUNTjZo2DSFm7NWX5H8H038FXUbrj1XixtRdc13vtn
dWfyOJ/sgcVK6X18hDBFLwin7PwJprS1mvHD+lgb/PbNtayOXIsHORdl7pfHKPtk
gqZNNthNUjOGp71nAtU4ShR6ZCGzba2X9FvGohUZdHiXKhV/D20Lf2JL2213Igs2
5+Bx7WtHuR///54HveYR0NG5740ImSji6KJ22M2Qzyk7uLtFWIrlb/oZWT6i70qj
vvPyE0W9taSGacYWIVBomEW8DXrU8Y5e0pC8u0qgm9WEWGSSbLUeQJvT1h4g5UyU
2N4V1/k8R8ydaPdU0CJn+fYDxsXJmO3t+gJxQv3p48c3HuLwC0BehT9AJIaNJgyH
WEFucxiT9pOU8SUqR3TVrKWwyr03cmKii4N/t4oxOkk5R4BEU1WswDC4QF4f4lEZ
bsaPGLhm+yUeEPJfKFT7WZyVFnwy4L8U04yeCnELc0ba3NKXXS0GJT3AMsLM9GDH
JOnMYLMwQvoD3bMI8NETb0a4sgjC+dAXH9Y9/T/yFcqPI/6T9d2Cb5fYUcWuc5Yj
aFC0xUI5AwHysIyJ/SaMY94ZZD7nAqTDnTKNoeceTixGxPiRIuQ=
=awIX
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.