-

   rss_forum_sources_ru

 - e-mail

 

 -

 LiveInternet.ru:
: 29.07.2007
:
:
: 80

:


goto vs break & continue

, 19 2020 . 15:31 +
Wound:
applegame @
, . , , , .

5 . , . , . - .
, - RAII, , , - . , , . , new int, delete, , . .

applegame @
, unique_ptr.

. - RAII . delete, - . ++ , , .

applegame @
. scope(), . scope(exit) unique_ptr . , . : https://run.dlang.io/is/7jJE7b

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

:  

: [1] []
 

:
: 

: ( )

:

  URL