On Tue, 28 Jul 2009, Lorenzo Fiorini wrote:
> > I suppose that Giancarlo uses NIL as return string in case of error to use
> > function without checking nResult. An empty string forces to check always
> > nResult.
> I prefer Viktor's 2nd option: returns "" and set the error.
> NIL says nothing about the error so it's always necessary to look
> elsewhere to manage it, while a string with NIL means always checking
> before use it.

Fine, I also think it's reasonable but in such case we should fix value
stored in 2-nd parameter to follow documentation.
   > 0 size of line with terminator
   0 - connection closed by foreign host
   < 0 error

best regards,
Przemek
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to