r/C_Programming • u/Gullible_Ostrich_370 • Jul 17 '26
C with classes
I'm curious to know: who uses some C++ features when coding in C? And what feature(s) are you using?
29
Upvotes
r/C_Programming • u/Gullible_Ostrich_370 • Jul 17 '26
I'm curious to know: who uses some C++ features when coding in C? And what feature(s) are you using?
View all comments
Show parent comment
7
u/Beliriel Jul 18 '26
This is one of only two things I'd implemement. The other being a this-pointer within in a struct. Or some kind of self reference. But yeah since C has no reflection I doubt this is possible to do.
And namespaces would need namemangling handling in the compiler with accompanying standards on how its done. Also a pipedream.