Re:The friendship between Haskell and C
by mhh__ on Friday March 17, 2023 @11:36AM
(#35198460)
errno can be set upon failure, and also the behaviour is dependant on the global floating point environment (although passing this around with you would be rather cumbersome)
[ Parent
| on HN ]
> errno can be set upon failure
... can it? I don't see it in the man page. The rest is a good point, either way, though.
I don't know the exact wording in the standard but take a look at/around the GCC flag -fno-math-errno for example