I write a fair bit of code in the C programming language. It turns out that it’s possible to write reasonably understandable object-oriented code (OO) in C, including a limited form of single inheritance. In the following article, I will outline the techniques I use. Topics will include:

  • Incomplete types
  • Single inheritance
  • Aggregation
  • Naming conventions
  • Symmetry
  • Memory management
  • Name mangling

An interesting side effect of teaching myself how to accomplish these tasks in C is that I have a much better understanding of how OO programming really works, and what some of the issues are in designing an OO language, and writing it’s compiler.

Further topics not necessarily restricted to OO programming will include:

  •  Pros and cons of modular code: sometimes, one single file makes a lot of sense.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s