Whidbey for Visual C++ .NET - destructor chaining
От: desperado_gmbh http://www.livejournal.com/users/tolstopuz
Дата: 26.11.03 15:58
Оценка:
http://www.codeproject.com/interview/whidbey_cpp.asp

C++ managed classes can now have destructors, meaning C++ now has deterministic finalisation. The destructor implicitly implements the Dispose pattern of managed code and includes chaining, and is called when a stack-based object goes out of scope, a class member's enclosing object is destroyed or when delete is called. Having destructors means that the classic stack based pattern can be used, which means less try/catch/finally blocks and cleaner code.


Они настоящие!
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.