News for hackers. Stuff that matters.
Re: by 1718627440 on Wednesday October 01, 2025 @03:15PM (#45441996)
> malloc

Yes, that's heap allocation. I'm talking about automatic allocation, by the compiler not getting a pointer from a library function. Like that:

    Connection connections[200];
This will call the constructor, which forces me to write the class in a way that has `bool initialized`, and provide a random other method with poses as a second constructor. And now every function has to do a check, whether the constructor was called on the object or I just declare it to be UB and completely loose type safety.

There are no comments on this comment yet.