Re: Delphi support for generics/templates?

From: Wayne Niddery [TeamB] (wniddery_at_chaffaci.on.ca)
Date: 02/11/04


Date: Wed, 11 Feb 2004 11:48:53 -0500

Dave Jewell wrote:
>
> I can accept that it will be easier to implement when the runtime
> provides generics support, but my question for the panel is: "In what
> way will the runtime provide generics support, and how will it work?"
> From my perspective, the compiler generates the needed classes based
> on the supplied type, so I'd be interested in an explanation of
> exactly what the runtime has to do with things.

It issue seems pretty clear to me:

Yes, they could invent their own implementation of generics within the
Delphi compiler without regard for how it is implemented in .Net. However it
is *known* that there will be an implementaiton of generics added to .Net
soon. Whether they were to do their own now or not, they would most
definitely need to support the MS implementation once added. Therefore,
doing their own now would lead to:
1) having to support two different implementations of the same thing
2) or rewriting their implementation then to make it compatible with .Net
3) or removing their own implementation at that time and breaking people's
code

The end result is they'll burn resources now to implement this just to be
faced with the above later. Not very cost effective nor best use of limited
resources in my book - they could be using their time to work on other
features that will not be (or at least less likely to be) so redundant.

We've waited this long for generics already, a little longer won't hurt
since the result will be one single compatible implementation.

-- 
Wayne Niddery - Logic Fundamentals, Inc. (www.logicfundamentals.com)
RADBooks: http://www.logicfundamentals.com/RADBooks.html
"It is error alone which needs the support of government. Truth can
stand by itself." - Thomas Jefferson


Relevant Pages

  • Re: 64-bit on the horizon? (Was Re: Vista Requirement Already)
    ... FAR more important than generics or partial classes, ... (aiui even a .net language doesn't _have_ to support generics, ... My 64-bit servers run all my 32 bit apps just fine. ...
    (borland.public.delphi.non-technical)
  • Re: IDE products roadmap updated
    ... Highlander will add Delphi.NET support for generic types, ... partial classes, and nullable types, and all WinForms, Web Services, and ... ADO.NET support will be converted to support .NET 2.0. ... generics may be the headline feature, but their use tends to be ...
    (borland.public.delphi.non-technical)
  • Re: A question related to type casting
    ... Given that the distinction already had to be worked around (you couldn't put an int in a List before Java 5), the added complexity would end up being rather pointless. ... Lack of support for value types means more than just the execution overhead of the boxing. ... For example, ArrayList<T> stores the elements in an array of type T. But, there's no way for the class to use an array of ints; it has to be Integer, with each array element a reference to a boxed int, and of course for there to be a separately allocated Integer instance for each non-null array element. ... You're correct that it would have been more complex to support generics in a reifiable way. ...
    (comp.lang.java.programmer)
  • Re: Part 4 of Short Steps Toward Generic Programming: KIND Genericity
    ... Other generics might involve more ... > support two real KINDs, ... To be fair I don't think that is the exponential growth problem. ...
    (comp.lang.fortran)

Loading