2 ms·
The constructor might be partially executed before the exception is thrown (for example, allocated memory or locked resources), in which case those things don't
by stingraycharles 16y ago
The constructor might be partially executed before the exception is thrown (for example, allocated memory or locked resources), in which case those things don't get cleaned up.
I'm not arguing it isn't correct behavior, it's just that things don't always seem as easy and straightforward as they look on first sight.