3 ms·
Except the posted C++ code does not correctly handle memory errors or exceptions thrown by the STL. I love C++, but let's not make stupid claims.
by shin_lao 13y ago
Except the posted C++ code does not correctly handle memory errors or exceptions thrown by the STL.
I love C++, but let's not make stupid claims.
- ajross 13y agoAll the posted python/ruby/etc... above has the same problem. A OOM condition will terminate them all, which is generally the desired behavior (and thus the reason that process termination is the default handler for OOM conditions in all environments). What error specifically are you looking to see handled that wouldn't be exactly equivalent in your scripting language of choice?
- angersock 13y agoHell, in Linux, an OOM somewhere else on the system could terminate a properly written program with error handling.