4 ms·
Not if the standardised way is worse than the naive way, like in C++. Then I will rather take manual virtual calls, like in C: https://elixir.bootlin.com/linux/
by colonwqbang 3y ago
Not if the standardised way is worse than the naive way, like in C++. Then I will rather take manual virtual calls, like in C:
https://elixir.bootlin.com/linux/latest/source/include/linux/fs.h#L1916 https://elixir.bootlin.com/linux/latest/source/include/linux...
It isn't that much more work and it's not something you end up doing terribly often. I think destructors are a much more important to help day to day development and avoid bugs.