"Walter Bright" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
>I asked this over on stackoverflow.com to see what people using other 
>languages have to say, as well as the D community. The reason I ask is to 
>see if memory allocation can be allowed in functions marked "nothrow".
>
> http://stackoverflow.com/questions/333736/is-out-of-memory-a-recoverable-error

I haven't looked at any of the other responses yet, but I'd have to say 
"sometimes". Clearly, getting an out of memory when trying to instantiate a 
trivial class is nonrecoverable (unless it's happening within a section of 
memory-intensive code that's allowed to fail, and the rest of the program 
does very little allocation), but getting an out of memory when trying to 
allocate a 1GB buffer for video processing is certainly recoverable. 


Reply via email to