News for hackers. Stuff that matters.
Re:Object-oriented design patterns in C and kernel development by ryao on Wednesday August 27, 2025 @08:34PM (#45046980)
Unlike OOLs, C does not enforce contracts around structures (objects). You are free to do literally anything you want to them.
Re:Object-oriented design patterns in C and kernel development by pjmlp on Thursday August 28, 2025 @08:29AM (#45051348)
Including implementing Abstract Data Types, thus everything on the structs is only accessible via functions that enforce the contracts.