Is "Out of Memory" a recoverable error?
Leandro Lucarella
llucax at gmail.com
Fri Dec 5 15:26:36 PST 2008
Walter Bright, el 5 de diciembre a las 15:05 me escribiste:
> Sean Kelly wrote:
> >I disagree. D is a systems app and so should not require termination on
> >any error. The distinction to me is that Errors require special handling
> >if recovery is to be attempted, while it's often safe (if bad practice) to
> >simply log Exceptions and soldier on. That isn't to say that it's always
> >possible (and certainly not always advisable) to recover from an Error,
> >but I think that decision should be left up to the user.
>
> If we go down that path, then nothrow functions can never allocate memory.
Maybe they shouldn't (and if this is true, maybe there is too little use
for nothrow :S)
--
Leandro Lucarella (luca) | Blog colectivo: http://www.mazziblog.com.ar/blog/
----------------------------------------------------------------------------
GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145 104C 949E BFB6 5F5A 8D05)
----------------------------------------------------------------------------
Software is like sex: it's better when it's free.
-- Linus Torvalds
More information about the Digitalmars-d
mailing list