Re:I like Odin
by baq on Sunday August 28, 2022 @06:20PM
(#32632638)
Non-issue. You can use fopen in C++ and remember to fclose, too.
[ Parent
| on HN ]
No, every time you have something that sound like "you just have to [...]" it means future bugs that were entirely preventable. The only correct way in c++ is to wrap it in a unique_ptr or handle type so that fclose gets called automatically when you are done with the resource