Article View: borland.public.delphi.language.objectpascal
Article #32543Re: TInterfacedObject question
From: Robert Kuhlmann
Date: Fri, 22 Nov 2002 11:21
Date: Fri, 22 Nov 2002 11:21
25 lines
2036 bytes
2036 bytes
The DeerBear schrieb: >... > To what I understood( may have misunderstood though ), it's Windows that > handles interfaces in the end, isn't it? No it isn't. > > Yes, Delphi expanded the concept, but isn't Windows the ultimate hander ? Windows doesn't "have" a concept of interfaces, it's always the programming language. What you mean are things like COM, COM+ DCOM a.s.o. Sure, Windows handles some of the COM-stuff, but this is true only for interfaces that inherit from IUnknown. But using Interfaces (that inherit from IInterface) the OO-way can be a great benefit to the architecture of your application. ...and there are no problems with memory usage or speed: We've done an application that deals with several tenthousands of interface instances at runtime simultaniously, has about 50 different interface classes (app. 4-5 levels of inheritance) that are implemented by 250-300 classes. It works. Bye Robert
Technical Details
Message-ID:
<3DDE1328.E481525A@ewetel.net>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!fu-berlin.de!news.uni-x.net!newsgroups.borland.com!not-for-mailReferences:
<3DDCC8AE.5070901@eps.ufsc.br> <3ddcd40c@newsgroups.borland.com> <3DDCEA87.7020401@eps.ufsc.br> <3ddcefe1@newsgroups.borland.com> <3DDD18AF.2244D275@ewetel.net> <3ddde80a$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 109d30,ffca35074b820550 X-Google-Attributes: gid109d30,public X-Google-ArrivalTime: 2002-11-22 04:15:45 PST Message-ID: <3DDE1328.E481525A@ewetel.net> Date: Fri, 22 Nov 2002 12:21:12 +0100 From: Robert Kuhlmann <robert.kuhlmann1@ewetel.net> X-Mailer: Mozilla 4.7 [de] (Win98; I) X-Accept-Language: de MIME-Version: 1.0 Newsgroups: borland.public.delphi.language.objectpascal Subject: Re: TInterfacedObject question References: <3DDCC8AE.5070901@eps.ufsc.br> <3ddcd40c@newsgroups.borland.com> <3DDCEA87.7020401@eps.ufsc.br> <3ddcefe1@newsgroups.borland.com> <3DDD18AF.2244D275@ewetel.net> <3ddde80a$1@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 80.228.66.250 X-Trace: newsgroups.borland.com 1037964072 80.228.66.250 (22 Nov 2002 03:21:12 -0800) Lines: 25 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!fu-berlin.de!news.uni-x.net!newsgroups.borland.com!not-for-mail