Hacker News new | ask | show | jobs
by cicero 5550 days ago
There are structs in C, as well as unions, but they are data only - no methods.
1 comments

Well, function pointers exist in C, though they are certainly a clumsy replacement for having methods (or first-class functions / closures / currying) built into the language.