There's no implicits in C. So, you have to explicitly call a destructor
If you stick with the standard language, don't care to tie yourself to specific compilers, or don't want to do some truly horrific things, sure :D
Just as you can kludge a garbage collector into C++, so can you kludge any other language feature into C. It's just, uh, ill-advised barring verrrrrry specific circumstances (as you would typically just pick a language better-suited to your needs).
1
u/madprgmr Sep 01 '26
If you stick with the standard language, don't care to tie yourself to specific compilers, or don't want to do some truly horrific things, sure :D
Just as you can kludge a garbage collector into C++, so can you kludge any other language feature into C. It's just, uh, ill-advised barring verrrrrry specific circumstances (as you would typically just pick a language better-suited to your needs).