Re: Delphi 2007 Language Feature: Generics
- From: "Bob" <rcf2@xxxxxxxxx>
- Date: 16 Jan 2007 19:27:12 -0800
Chris Burrows wrote:
http://mark.michaelis.net/essentialcsharp/
For those who are familiar with the similar, but different, feature
of templates (e.g. as in C++), this document does a good job of
highlighting the differences between them.
I'd be interested to know if Win32 D2007 is going to include all of
the Generics features detailed in this chapter or just a subset?
There may well be some aspects that are not applicable to Win32 - I
don't know.
I havent read the article yet, but in reading this post, a thought
crossed my mind. When you create the "template" code for your generic
class, you have AnyType which could be anything. For simple classes
this is fine, but for complex classes, I can imagine needing to
possibly make decisions on what AnyType is and have the code act
differently. Would it be possible to do something like:
if AnyType is string then
DoSomethingStringSpecific;
--
.
- Follow-Ups:
- Re: Delphi 2007 Language Feature: Generics
- From: Joanna Carter [TeamB]
- Re: Delphi 2007 Language Feature: Generics
- References:
- Re: Delphi 2007 Language Feature: Generics
- From: Mark Andrews (The Other One)
- Re: Delphi 2007 Language Feature: Generics
- From: Chris Burrows
- Re: Delphi 2007 Language Feature: Generics
- Prev by Date: Re: BDS 2007 ETA? - Software Assurance gets a no vote here
- Next by Date: Re: BDS 2007 ETA? - Software Assurance gets a no vote here
- Previous by thread: Re: Delphi 2007 Language Feature: Generics
- Next by thread: Re: Delphi 2007 Language Feature: Generics
- Index(es):
Relevant Pages
|