Re: "Vector" Equivalent
- From: Brian Moelk <bmoelk@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 23 Aug 2006 17:10:38 -0400
Jolyon Smith wrote:
See other post - generics don't actually help in all the cases where
this capability would be of use.
Can you give a specific example here? I reread your other post and
still don't see it.
The object list is a poor example because it is something that generics
could be used for. But specialising the type of an inherited property
from an existing base class isn't something that generics can do for you
aiui.
No, but generics would be used in a better/improved implementation of
those container classes which would obviate the need for what you're
suggesting. IOW, TObjectList would be implemented in a different way,
using generics, so that you wouldn't need to inherit from it at all.
They are different things, even though in isolated examples they can
look very similar.
I guess I'm just missing it, can you explain it more thoroughly?
--
Brian Moelk
Brain Endeavor LLC
bmoelk@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
.
- 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
- Re: "Vector" Equivalent
- From: Jolyon Smith
- Re: "Vector" Equivalent
- From: Loren Pechtel
- Re: "Vector" Equivalent
- From: Brian Moelk
- Re: "Vector" Equivalent
- From: Jolyon Smith
- "Vector" Equivalent
- Prev by Date: Re: The Delphi Hour
- Next by Date: Re: Turbo: A great idea, not properly thought through... ?
- Previous by thread: Re: "Vector" Equivalent
- Next by thread: Re: "Vector" Equivalent
- Index(es):
Relevant Pages
|