News for hackers. Stuff that matters.
Re:OOP in C by billfruit on Sunday January 08, 2023 @12:55PM (#34301307)
But how do tackle creation of objects, call malloc everytime?

And how do you for example, create an array of objects, like one can easily do in c++?

Re:OOP in C by mmphosis on Sunday January 08, 2023 @03:49PM (#34302954)

  t_object object[NUMBER_OF_OBJECTS * SIZE_OF_OBJECT];
or

  t_object * object = malloc(NUMBER_OF_OBJECTS * SIZE_OF_OBJECT);