Stroustrup's RAII code
-
I am watching a video where B. Stroustrup talks about c++ - link-> (31:23) ()[^] I have trouble understanding the RAII slide: http://www.upload.ee/image/4090006/raii.png 1) Why doesn't he catch the exception? 2) I keep reading that when constructor throws, the destructor of an object is never called. Regards
-
I am watching a video where B. Stroustrup talks about c++ - link-> (31:23) ()[^] I have trouble understanding the RAII slide: http://www.upload.ee/image/4090006/raii.png 1) Why doesn't he catch the exception? 2) I keep reading that when constructor throws, the destructor of an object is never called. Regards
-
I am watching a video where B. Stroustrup talks about c++ - link-> (31:23) ()[^] I have trouble understanding the RAII slide: http://www.upload.ee/image/4090006/raii.png 1) Why doesn't he catch the exception? 2) I keep reading that when constructor throws, the destructor of an object is never called. Regards
-
I am watching a video where B. Stroustrup talks about c++ - link-> (31:23) ()[^] I have trouble understanding the RAII slide: http://www.upload.ee/image/4090006/raii.png 1) Why doesn't he catch the exception? 2) I keep reading that when constructor throws, the destructor of an object is never called. Regards
Why doesn't he use the handle? It's for illustration purposes only.