Re:Why Not Just Do Simple C++ RAII in C?
by riku_iki on Thursday May 23, 2024 @02:00AM
(#40450992)
> a simple statement like `a = b++;` can mean multiple constructors being called, hidden allocations, unexpected exceptions, unclear object hierarchies, an overloaded `++`, an overloaded `=`, etc.
its just mean if you need that logic, in C you would write lots of verbose less safe code.
its just mean if you need that logic, in C you would write lots of verbose less safe code.