Category Archives: Higher-level C

Namespaces in C

This post describes why namespaces are useful in programming. It also discusses some of the obvious ways of simulating them in C, including a technique for “reifying” them, using structs.

Posted in Higher-level C | Tagged , , | 6 Comments

Method polymorphism in C

An overdue post on polymorphism, which in C amounts to the ability to call a method on an object without knowing what the implementation is.

Posted in Higher-level C | Tagged , , | 2 Comments

Encapsulation in C

A previous post in my Higher-level C series introduced basic object creation, using structs. Here I’d like to elaborate on how to define and organise code that operates on objects.

Posted in Higher-level C | Tagged , , , , | 6 Comments

Objects in C

As the first topic for Higher-level C, I’ve picked a big one: objects.

Posted in Higher-level C | Tagged , , | 3 Comments

Higher-level C

My series on techniques for writing higher-level C programs.

Posted in Higher-level C | Tagged | 7 Comments