An Exchange() For All
[Estimated Reading Time: 3 minutes] Following on from yesterday’s post, Barry Kelly (CodeGear engineer) kindly clarified a few points, one of which was that Generics support in Delphi 2009 won’t extent to unit procedures, only class methods, so speculation about a possible generic implementation of a Swap()/Exchange() routine was rendered largely academic. Not to be dissuaded I came up with this solution to meet my current and quite possibly future needs.