|
|
|
|
|
by gmueckl
2700 days ago
|
|
This seems equivalent to scope(exit)/scope(success)/scope(failure) in D. The drawback of this construct is that you need to repeat 2 or 3 lines of code each time you need safe cleanup or a commit/abort type of construct. This can become pretty repetitive pretty fast. |
|
The nicest thing: you can throw in the exit method without the runtime falling over itself.