Saturday, October 20, 2007
On the Tension Between Object-Oriented and Generic Programming in C
On the Tension Between Object-Oriented and Generic Programming in C : "The author discusses how the use of generic programming in C can lead to conflicts with object-oriented design principles. He demonstrates how a technique known as type erasure can often be used to resolve these conflicts. An in-depth example is presented: any_iterator, a type-safe, heterogeneous C iterator."