2 ms·
D has constructs: scope(exit) foo(); // Call foo at the end of the scope scope(success) foo(); //Call foo if all goes well scope(failure) foo(); //
by mhh__ 4y ago
D has constructs:
scope(exit) foo(); // Call foo at the end of the scope
scope(success) foo(); //Call foo if all goes well
scope(failure) foo(); //Call foo if the wings fall off the plane.