News for hackers. Stuff that matters.
Re:C for All by pjmlp on Saturday March 24, 2018 @04:14AM (#16665467)
> C does not have RAII-like memory management in any way.

Yes it does, as language extension on gcc and clang.

It is called cleanup attribute.

https://gcc.gnu.org/onlinedocs/gcc/Common-Variable-Attribute...

https://clang.llvm.org/docs/LanguageExtensions.html#non-stan...

Re:C for All by EpicEng on Saturday March 24, 2018 @03:29PM (#16668395)
That's not C, _the language_, those are compiler features.
Re:C for All by pjmlp on Sunday March 25, 2018 @10:55AM (#16672444)
I explicitly mentioned they are extensions.
Re:C for All by tomsmeding on Saturday March 24, 2018 @04:30AM (#16665522)
Thanks! I learned something. Didn't know about that.