Re: Delphi 2008 (Tiburon) discussion
- From: "Bob Dawson" <RBDawson@xxxxxxxxxxx>
- Date: Sat, 6 Oct 2007 23:18:38 -0500
"Wayne Niddery [TeamB]" wrote
Bob Dawson wrote:
I was thinking of capitalizing on generics more. Certainly we could do
better than TCollection/TCollectionItem
As a general container class I've never got into using these, I've always
just used TList/TObjectList with my own various Item classes as needed.
I pretty much ignore TCollection as well--too many compromises in demanding
held item descent from TCollectionItem.
But rather than simple lists I'm generally I'm more interested in
Dictionaries. TStringList or a parallel TIntegerList are my normal
workhorses. In addition to a totally genericised TDictionary<Key, Value>
class I'd like Delphi to include string key and largeInt key versions.
There's no reason to force a key to always be a reference type when in
practice nearly all dictionaries are string or integer ordered. For a full
array we could have
TDictionary<Key : TClass; Value : TClass>
plus
TStringDictionary<Value : TClass>
TInt64Dictionary<Value : TClass>
TGUIDDictionary<Value : TClass>
bobD
.
- Follow-Ups:
- Re: Delphi 2008 (Tiburon) discussion
- From: Rudy Velthuis [TeamB]
- Re: Delphi 2008 (Tiburon) discussion
- From: m. Th.
- Re: Delphi 2008 (Tiburon) discussion
- References:
- Re: Delphi 2008 (Tiburon) discussion
- From: Andrew Fiddian-Green
- Re: Delphi 2008 (Tiburon) discussion
- From: Kevin B
- Re: Delphi 2008 (Tiburon) discussion
- From: Marc Rohloff [TeamB]
- Re: Delphi 2008 (Tiburon) discussion
- From: Bob Dawson
- Re: Delphi 2008 (Tiburon) discussion
- From: Wayne Niddery [TeamB]
- Re: Delphi 2008 (Tiburon) discussion
- Prev by Date: Re: Justified moaning?, I like to think so.
- Next by Date: Re: Justified moaning?, I like to think so.
- Previous by thread: Re: Delphi 2008 (Tiburon) discussion
- Next by thread: Re: Delphi 2008 (Tiburon) discussion
- Index(es):
Relevant Pages
|