Agreed, although if you don't mind my asking, what would you replace it with? An extra argument? Using part of the result-domain (e.g. -EINVAL instead of errno=EINVAL;return -1? Signals? Exception handlers embedded in the call frame?
I think you can tell a lot 'bout a man based on how he answers that question.
View all comments
Show parent comment
1
u/zoinks Oct 20 '09 edited Oct 20 '09
The whole idea of errno is a mistake in my opinion