{ |one, step, back| }

Polyglot Polymorphism
23 May 03 - http://www.onestepback.org/index.cgi/Tech/Programming/Polymorphism.rdoc
In an email converversion on the CLUG (www.clug.org) mailing list some time ago, we got on the topic of doing Object Oriented program (with runtime polymorphism) in a non-OO language like C. What would it take, what would the code look like and is it worth it?

Using the standard shapes example, I posted some code in C showing how to do runtime polymorphism using pointers to functions. I also include C++ and Java examples. Then everybody got in the act and we ended up with this (onestepback.org/articles/poly).

Some of the source files are missing, and I’ll replace them when I can. In the meantime, enjoy.