Re: "Vector" Equivalent
- From: Jolyon Smith <jsmith@xxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 23 Aug 2006 15:34:40 +1200
In article <44ebc9da@xxxxxxxxxxxxxxxxxxxxxx>, Erick Sasse says...
Jolyon Smith wrote:
Hope you don't mind, I've logged this in QC - #33013
There is a popular QC report that addresses the same issue.
Please, vote for it:
What I've suggested, inspired by Loren, is not generics - at leat I
don't think so. afaics it addresses a similar need that generics can
also be used for, but can also be used where generics cannot help so
easily.
e.g. if I have a TCustomListView derived class that implements it's own
TListItem type, using my suggestion I can provide an Items property that
reflects that derived list item class without having to implement
property setter/getters that do nothing but act as a type casting
mechanism:
TMySuperList = class(TCustomListView)
:
other super list declarations and stuff
:
public
property Items[Index: Integer]: TListItem as TMySuperDuperListItem;
end;
The list/object list example I used could be handled by generics, but
I'm not sure that the list view case could.
And in the absence of generics for Win32/64, this would at least provide
some relief (and from where I'm sitting it looks to me like this should
be an absolute doddle to implement).
:)
--
Jolyon Smith
.
- Follow-Ups:
- Re: "Vector" Equivalent
- From: Loren Pechtel
- Re: "Vector" Equivalent
- From: Erick Sasse
- Re: "Vector" Equivalent
- References:
- "Vector" Equivalent
- From: Josh
- Re: "Vector" Equivalent
- From: Iman L Crawford
- Re: "Vector" Equivalent
- From: Loren Pechtel
- Re: "Vector" Equivalent
- From: Jolyon Smith
- Re: "Vector" Equivalent
- From: Erick Sasse
- "Vector" Equivalent
- Prev by Date: Re: Turbo pricing available
- Next by Date: Re: Turbo pricing available
- Previous by thread: Re: "Vector" Equivalent
- Next by thread: Re: "Vector" Equivalent
- Index(es):
Relevant Pages
|