Lars Fosdal – In my previous article about a generics based case statement for strings, I commited many sins towards the Church Of Pure Pascal :)One of them was to not check for prior art. Sergey Antonov aka 0xffff did something similar back in April 2010 (Note: two links!).So, to make penance for my lack of purity (and have a chance to sin some more), I have tried to take the good parts of the concept and create something less ugly, and more comfortable to use.I rewrote the generic class and named it TCache. I kept the configurable key type, and I made the lookup value configurable as well. Basically, ...
Visits by Source
Users who voted for this posting