3 ms·
C doesn't have destructors, so how do you release resources acquired with RAII when the acquiring object goes out of scope?
by gowld 9y ago
C doesn't have destructors, so how do you release resources acquired with RAII when the acquiring object goes out of scope?
- steveklabnik 9y agoC programmers, in my experience, will use a "goto cleanup" pattern to emulate RAII in this case https://softwareengineering.stackexchange.com/a/154980 https://softwareengineering.stackexchange.com/a/154980