, 19 2020 . 15:31
+
Wound:
applegame @ , . , , , .
5 . , . , . - .
, - RAII, , , - . , , . , new int, delete, , . .
applegame @ , unique_ptr.
. - RAII . delete, - . ++ , , .
applegame @
scope . scope, , .
applegame @ , , scope(exit) - .
, scope, RAII , , , .
applegame @ . , C++ scope, RAII, D scope RAII.
- , . ++ scope, GC, D GC, scope . ++ scope(exit) - , .
applegame @ . try/catch/finally try/catch/finally.
, scope(success)/scope(failure)/scope(exit) try/catch/finally, .
. try/catch/finally, try-with-resources/using - try/catch/finally, scope(exit).
, scope(exit) - . - , .
https://forum.sources.ru/index.php?showtopic=362619&view=findpost&p=3834633
:
Holy Wars