Thread: C for OO programming?

  1. #1
    Registered User
    Join Date
    Dec 2004
    Posts
    25

    C for OO programming?

    how many people actually use C for OO programming? it's described here: http://www.planetpdf.com/codecuts/pdfs/ooc.pdf

  2. #2
    Gawking at stupidity
    Join Date
    Jul 2004
    Location
    Oregon, USA
    Posts
    3,218
    5,248,936 people.
    If you understand what you're doing, you're not learning anything.

  3. #3
    Registered User
    Join Date
    Dec 2004
    Posts
    25
    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.

  4. #4
    Gawking at stupidity
    Join Date
    Jul 2004
    Location
    Oregon, USA
    Posts
    3,218
    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.

  5. #5
    Registered User
    Join Date
    Dec 2004
    Posts
    25
    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?

  6. #6
    Registered User
    Join Date
    Mar 2004
    Posts
    536
    Quote Originally Posted by serfurj
    how many people actually use C for OO programming? it's described here: http://www.planetpdf.com/codecuts/pdfs/ooc.pdf

    Who knows? (My guess is: 42.) My comment is: why bother?

    You might want to look at Stroustrup's FAQ
    "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"
    If you want an Object-Oriented language kind of like an extension of C, why not use something that is an International Standard?

    Regards,

    Dave

  7. #7
    Registered User
    Join Date
    Dec 2004
    Posts
    25
    thanks, that's the kind of answer i was looking for.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Recursive Function
    By Codedecode in forum C++ Programming
    Replies: 5
    Last Post: 06-07-2008, 02:14 AM
  2. array -- foo, &foo and &foo[0]
    By George2 in forum C Programming
    Replies: 9
    Last Post: 08-14-2007, 01:22 PM
  3. anyone here hate when foo bar baz is used in example code?
    By shintaro in forum A Brief History of Cprogramming.com
    Replies: 18
    Last Post: 09-26-2006, 07:07 AM
  4. Couple of Q's.....
    By oobootsy1 in forum C++ Programming
    Replies: 18
    Last Post: 02-23-2004, 02:03 PM
  5. x = foo();
    By HoundEYE in forum C++ Programming
    Replies: 2
    Last Post: 04-13-2003, 09:41 PM