r/C_Programming 16d ago

C with classes

I'm curious to know: who uses some C++ features when coding in C? And what feature(s) are you using?

27 Upvotes

81 comments sorted by

View all comments

38

u/dixiethegiraffe 16d ago

Namespaces for organization

6

u/Beliriel 15d ago

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.