Hi Chebmaster,Originally Posted by Chebmaster
I'd really just like to say that the article is intended to illustrate the use of TObject.methodAddress. This can be a pretty useful little trick that a lot of people may not have encountered before.
The vehicle for this is my basic versioned data store. It is simple and effective and above all illustrates the use of TObject.methodAddress quite well. Whether it provides an optimal solution depends on what qualifies as optimal... in the context of a game where it is used to load game data, map data and game saves, its load and save times are more than acceptable... the files sizes are quite small because it has no additional type/class information and if your idea of optimal involves code size and complexity then I would suggest its right up there because its quite small and easy to understand... even for beginners.
With regards to other solutions to versioned data storage... there are other options (a fact I stated in the article), but... I've tried one or two and I didn't get on very well with them. So, I wrote my own and have used it as the basis for this article with the intention of helping others learn a little more about our favourite language.
Thanks for reading and thanks for the comments.
Bookmarks