4 ms·
If I understand the feature correctly, D has this via scope(failure) [1] ``` void func() { scope(failure) writeln("Something went wrong!"); } ``` [1] https:
by BradleyChatha 1y ago
If I understand the feature correctly, D has this via scope(failure) [1]
```
void func()
{
scope(failure) writeln("Something went wrong!");
}
```
[1] https://tour.dlang.org/tour/en/gems/scope-guards https://tour.dlang.org/tour/en/gems/scope-guards