News for hackers. Stuff that matters.
Re:Object oriented programming with ANSI-C (1993) by blacksqr on Saturday January 04, 2014 @11:33AM (#7011609)
I ran into this a while back. Worth knowing about I think. I'd like to see a compare-and-contrast with "Writing Bug-free C Code." (http://www.duckware.com/bugfreec/index.html)
Re:Object oriented programming with ANSI-C (1993) by deletes on Saturday January 04, 2014 @12:11PM (#7011801)
I have read Object oriented programming with ANSI-C and implemented my own class system in C with inheritance and polymorphism.

Taking a look at Writing Bug-free C Code the chapter about class is really just an example how to use structs with pointers that don't expose the underlying implementation.

If you want to learn oop read the Oop with Ansi-C, where classes similar to c++ with certain limitations are possible. The book explains everything in detail with including source code[http://www.cs.rit.edu/~ats/books/ooc-14.01.03.tar.gz].

Re:Object oriented programming with ANSI-C (1993) by ExpiredLink on Saturday January 04, 2014 @12:39PM (#7011957)
This seems to be the horrible Schreiner book. IIRC, he tries to do OO in C by using a special pre-processor. Sorry, this approach has never been relevant.
Re:Object oriented programming with ANSI-C (1993) by Roboprog on Saturday January 04, 2014 @12:48PM (#7012007)
Sarcasm? The original "C with Classes" was a preprocessor, I believe.
Re:Object oriented programming with ANSI-C (1993) by bitwize on Saturday January 04, 2014 @01:01PM (#7012085)
And then it was found to be inadequate for real work and turned into a separate language.
Re:Object oriented programming with ANSI-C (1993) by UNIXgod on Saturday January 04, 2014 @01:14PM (#7012148)
It was used to bootstrap it. Sounds like real work to me.
Re:Object oriented programming with ANSI-C (1993) by deletes on Saturday January 04, 2014 @12:52PM (#7012035)
Yes a single chapter is dedicated to that, all the code is beforehand explained and then implemented in the preprocessor. Everything can be implemented by hand. The point of the books seems to be mostly educational, if you would decide to actually use oop in serious projects then writing your own preprocessor would solve two problems. The tedious manual table/pointer writing and avoiding mistakes coming from the former.

I would love to get some book recommendation regarding the subject from you.