The Right Approach to Exceptions

Andrei Alexandrescu SeeWebsiteForEmail at
Sun Feb 19 18:33:04 PST 2012

On 2/19/12 7:53 PM, H. S. Teoh wrote:
> I stand by my objection that if something might succeed if it can be
> retried, then it needs to be retried in the called function, not the
> caller.

If read fails from a socket, it's of no use to try it again. One must 
close the socket, reconnect, and attempt the whole operation once again.


More information about the Digitalmars-d mailing list