By now, you've probably heard that Delphi 2009 will have generics for Win32. The first thing I always think of is type safe collections that don't require casting. Someone asked what has been added to the RTL to take advantage of the feature. In this first release, the following were added to the RTL in Generics.Collections.pas.
TList
TQueue
TStack
TDictionary
Descendants that optionally manage ownership of objects in the list:
TObjectList
TObjectQueue
TObjectStack
TObjectDictionary
Nick Hodges will be exploring TList
For And for good measure, Allen Bauer and Barry Kelly have been blogging about less stereotypical uses for generics. Stay tuned for more.
Multicast events using generics
Multicast Events - the cleanup
Tiburon: fun with generics and anonymous methods
No comments:
Post a Comment