Friday, August 29, 2008

Delphi 2009 - Generics.Collections

CodeGear has given me permission to blog about the upcoming release of Delphi 2009 (Tiburon).

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 in more detail in his "Delphi Language Features" launch webinar on September 3rd.


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: