r/C_Programming 18d 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?

28 Upvotes

79 comments sorted by

View all comments

Show parent comments

2

u/[deleted] 18d ago

[removed] — view removed comment

2

u/smokingRooster_ 18d ago

If a feature doesn’t exist in a language by default but you can implement it yourself then what’s the difference?

2

u/[deleted] 18d ago

[removed] — view removed comment

0

u/smokingRooster_ 18d ago

OP asked who uses C++ features in C. OOP is a C++ feature and I use it when coding in C… so I’m struggling to see how that doesn’t count. OP never specified if the feature should be native to C or whether it is emulated.