Перенос страниц
This commit is contained in:
parent
4d57446057
commit
4c954c9186
129 changed files with 14 additions and 15 deletions
9
book/03-инструкции/src/chapter-3-13/app.d
Normal file
9
book/03-инструкции/src/chapter-3-13/app.d
Normal file
|
@ -0,0 +1,9 @@
|
|||
void main()
|
||||
{
|
||||
import std.stdio;
|
||||
|
||||
scope(exit) writeln("Running scope exit"); // Выполнится самая последняя
|
||||
scope(success) writeln("Running scope success"); // Выполнится самая первая
|
||||
return;
|
||||
scope(exit) writeln("This is never run since the function returned before it was registered."); // Не выполнится
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue