how many people actually use C for OO programming? it's described here: http://www.planetpdf.com/codecuts/pdfs/ooc.pdf
how many people actually use C for OO programming? it's described here: http://www.planetpdf.com/codecuts/pdfs/ooc.pdf
5,248,936 people.
If you understand what you're doing, you're not learning anything.
wow, that's a lot. maybe i should give it a try.
seriously, is it worth trying?
Last edited by serfurj; 02-23-2005 at 09:27 AM.
It depends on what you're trying to accomplish. Even the Linux kernel uses OO principles in C where it fits.
If you understand what you're doing, you're not learning anything.
it seems like it might be a bit cumbersome.
so how common is it? (i haven't examined too much C code, being a noob) do you use it?
Originally Posted by serfurj
Who knows? (My guess is: 42.) My comment is: why bother?
You might want to look at Stroustrup's FAQ
If you want an Object-Oriented language kind of like an extension of C, why not use something that is an International Standard?"The first C++ compiler (Cfront) was written in C++. To build that, I first used C to write a "C with Classes"-to-C preprocessor. "C with Classes" was a C dialect that became the immediate ancestor to C++. That preprocessor translated "C with Classes" constructs (such as classes and constructors) into C"
Regards,
Dave
thanks, that's the kind of answer i was looking for.