4 ms·
C has classes?
by dapids 6y ago
C has classes?
- chc 6y agoPython has classes defined in C.
- Spivak 6y agoAnd “classes in C” is really just a matter of agreeing on a convention. GObject and COM are object systems that have C implementations. I suppose it’s a mental thing when you’re “below” the abstract object system instead of getting to treat them as tangible things unto themselves. Like how C doesn’t really have strings — they’re pointers or structs and so you don’t get any sort of encapsulation that’s not enforced by convention. You have to maintain the invariants or only use methods that maintain them.
- dapids 6y agoWow, it was a legitimate query, I wasn't sure what OP was referring to. Thanks for the downvotes.