Sun Mar 29 14:30:19 CEST 2009

classes vs. prototypes

Writing plain vanilla C code, one often wants some form of OOP
indirection.  Instead of storing references to classes in objects, it
is often simpler to get rid of this level of indirection and store
methods directly in objects.  This is called ``Prototype based OOP''.

When it is clear that some kind of class structure emerges,
"behaviour" objects can be constructed: objects which contain only a
collection of methods and are referenced by other objects.