The Errno Story
Marcin 'Qrczak' Kowalczyk
qrczak at knm.org.pl
Fri Jul 25 11:56:04 EDT 2003
Dnia pią 25. lipca 2003 16:52, Dean Herington napisał:
> John's first suggested alternative above seems very appealing to me, as it
> seems neatly to fix the fundamental design flaw in `errno`: that
> determining the success/failure of a system call is separated from the call
> itself. I'm surprised more sentiment in its favor has not shown up. What
> are the disadvantages of such a solution?
That you usually wrap functions which set errno in higher order functions
which translate it to exceptions (there are such functions ready in FFI
libraries), so it doesn't matter how it's implemented under the hood. And the
current mechanism, with the change for threads, is simpler.
--
__("< Marcin Kowalczyk
\__/ qrczak at knm.org.pl
^^ http://qrnik.knm.org.pl/~qrczak/
More information about the FFI
mailing list