Re: Virtual static methods?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Jesse McGrew (jmcgrew_at_hanshorseprestigepelican.com.remove.animals)
Date: 07/16/04


Date: Thu, 15 Jul 2004 19:51:25 -0700

Stoitcho Goutsev (100) [C# MVP] wrote:
> Hi Pavlis,
>
> This has been discussed in this ng several times. You can search google for
> those discusion.
> Anyways in order polymorphism to work you have to have isntance to an
> object. With static method you don't have. This is platform issue. Some
> languages (such as Delphi I believe) can do that because for each type there
> meta type and there is single instance of it. .NET Type objects are not the
> same
>

Delphi for .NET supports virtual class methods and metaclasses, but they
are implemented by the compiler with nested classes and other sneaky tricks.

Jesse



Relevant Pages

  • Re: After a few days with VS.NET 2005
    ... IMO typically business web sites or other business style code. ... Or because I like Delphi, then using the Delphi's virtual class methods allow me the level of detachment from the .Net world I need. ... And it can be used, not only for explanatory metadata, but also for RTTI type stuff which is of importance in kbmMW. ...
    (borland.public.delphi.non-technical)
  • Re: VCL.NET revisited...
    ... Under Delphi this is no problem because the compiler resolves the issue ... Do you anticipate finding other things that don't fit right? ... Anything with sets or virtual class methods or named constructors? ... generates C# code instead of Delphi code :-) ...
    (borland.public.delphi.non-technical)
  • Re: Is it time for a real 64-bit Delphi Survey?
    ... Rudy Velthuis (TeamB) wrote: ... >> Another issue is the lack of virtual class methods ... > methods, like Delphi 7. ... yes you are right (confusing my issues here). ...
    (borland.public.delphi.non-technical)