Generics in Delphi?
While I was looking for something else, I came across this interesting piece, about how to create and use template (generics) in Delphi. It is fascinating all the ways you can hack Delphi to get what you want. Before anyone from the C++ world complains about the use of ``preprocessor defines'' to simulate templates, it ought to be noted that the first version of Visual C++ purporting to support templates actually used preprocessor macros to simulate templates.