On 9/26/2014 2:04 PM, "Ola Fosheim Grøstad"
<[email protected]>" wrote:
On Friday, 26 September 2014 at 18:46:19 UTC, Walter Bright wrote:
I wrote a C++ compiler in 1987. Nobody had ever heard of exceptions.
Lisp had exceptions in the 60s. In the 80s exception handling was fashionable in
language design. :)
I meant in the context of C++.
Bjarne's 1986 "The C++ Programming Language" does not mention RAII or
exceptions, but does say on pg. 158:
"Calling constructors and destructors for static objects serves an extremely
important function in C++. It is the way to ensure proper initialization and
cleanup of data structures in libraries."
I would not call this RAII,
I would. The whole point of destructors is to automatically clean up resources
when the object goes away, which was (later) dubbed RAII.