2 ms·
Usually destructors can't fail. But for rare cases like with close() you can write a helper function (static method) which destroys the given object and returns
by Panzerschrek 6mo ago
Usually destructors can't fail. But for rare cases like with close() you can write a helper function (static method) which destroys the given object and returns an error if has one.