RE: OT: PROG question: regarding returning errors in libraries

2003-02-08 Thread linux_il
From: Oleg Goldshmidt I dislike errno-like global error codes - they are too easy to overwrite and too easy to forget to check thoroughly (since they exist sorta independently from the functions). I much prefer returning an error/success code from functions. Among other things, I consider

Fwd: Re: OT: PROG question: regarding returning errors in libraries

2003-02-07 Thread Voguemaster
--- Forwarded message --- From: Voguemaster [EMAIL PROTECTED] To: guy keren [EMAIL PROTECTED] Subject: Re: OT: PROG question: regarding returning errors in libraries Date: Fri, 07 Feb 2003 15:52:36 +0200 Well, I can only speak from my exprience. When I wrote a mail relay server, I've

Re: OT: PROG question: regarding returning errors in libraries

2003-02-07 Thread Muli Ben-Yehuda
On Fri, Feb 07, 2003 at 05:54:38PM +0200, Oleg Goldshmidt wrote: Interesting topic. Maybe more suitable for hackers-il, as non-Linux-specific? Maybe we need programming-il? and __LINE__ (and if you only care about gcc than you can also use __FUNCTION__) then the trace is easy to follow.