4 глава

This commit is contained in:
Alexander Zhirov 2023-02-05 19:45:16 +03:00
parent e0caa7caab
commit ec805e7f08
15 changed files with 1584 additions and 1 deletions

View 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."); // Не выполнится
}