Re: [UOPL-Architect] how design uopl gui applications
Status: Planning
Brought to you by:
bsstmiller
|
From: Dennis L. <de...@de...> - 2004-12-07 19:18:06
|
Can anyone tell me if these declarations TComponent = class(TPersistent, IInterface, IInterfaceComponentReference) and TInterfacedPersistent = class(TPersistent, IInterface) - are also present in Delphi 6? I don't have D6 installed at the moment. Dennis Landi Allied Data, Inc. 800 204 2722 http://www.dennislandi.com ----- Original Message ----- From: "Dennis Landi" <de...@de...> To: <uop...@li...> Sent: Tuesday, December 07, 2004 1:44 PM Subject: Re: [UOPL-Architect] how design uopl gui applications > OK. > > I just had a look at the D7 implementations of tInterfacedPersisent and > tComponent. There have been quite a few changes since D5. > > TComponent and TInterfacedPersistent are declared, respectively: > > TComponent = class(TPersistent, IInterface, IInterfaceComponentReference) > > and > > TInterfacedPersistent = class(TPersistent, IInterface) > > The definition of IInterface is > > IInterface = interface > ['{00000000-0000-0000-C000-000000000046}'] > function QueryInterface(const IID: TGUID; out Obj): HResult; stdcall; > function _AddRef: Integer; stdcall; > function _Release: Integer; stdcall; > end; > > IOW, both classes have functional parity in regard to the QueryInterface > functionality (They share IInterface). > > We simply need to duplicate these on the FreePascal side. (This is assuming > the FP support interfaces at all, otherwise its all moot). > > We can leave the choice up to individual developers wether or not to descend > from TInterfacedPersistent or TPersistent, we should just alert them to the > benefit of using TInterfacedPersistent. If they descend from tComponent, > then they automatically get the "IInterface" functionality for free... > > So you get all this for free, if you use D7 as the "porting target". > (Another issue, I suppose). > > Dennis Landi > Allied Data, Inc. > 800 204 2722 > http://www.dennislandi.com > > > > ----- Original Message ----- > From: "Dennis Landi" <de...@de...> > To: <uop...@li...> > Sent: Tuesday, December 07, 2004 1:02 PM > Subject: Re: [UOPL-Architect] how design uopl gui applications > > > > > > > > > True, but I think the point that was trying to be made is that these > > > private variables often > > > get surfaced as Public properties. > > > > You would do that in descendants. > > > > That has nothing to do with the TComponentClass classtype which is the > > typecast, and all the streaming mechanism sees. > > > > > > Dennis Landi > > Allied Data, Inc. > > 800 204 2722 > > http://www.dennislandi.com > > ----- Original Message ----- > > From: "Thomas Miller" <tm...@bs...> > > To: <uop...@li...> > > Sent: Tuesday, December 07, 2004 12:24 PM > > Subject: Re: [UOPL-Architect] how design uopl gui applications > > > > > > We could have both Owner and > > > OwnerInterface as > > > a property or function. > > > > > > I think the sooner we work some of these little detail out and can start > > > the CVS tree, > > > the better. I will continue working on website stuff for you. > > > > > > Dennis Landi wrote: > > > > > > >>By the way, couldn't we have both an FOwner and FOwnerInterface? > > > >> > > > >> > > > >> > > > > > > > >Private fields shouldn't interfere with the RTTI streaming system at > all. > > I > > > >doubt its an issue, but the experiment needs to happen. > > > > > > > >Three or four years ago I created my own tInterfacedComponent. I'll > see > > if > > > >I can find it. > > > > > > > >Dennis Landi > > > >Allied Data, Inc. > > > >800 204 2722 > > > >http://www.dennislandi.com > > > > > > > > > > > > > > > > > > > >------------------------------------------------------- > > > >SF email is sponsored by - The IT Product Guide > > > >Read honest & candid reviews on hundreds of IT Products from real > users. > > > >Discover which products truly live up to the hype. Start reading now. > > > >http://productguide.itmanagersjournal.com/ > > > >_______________________________________________ > > > >UOPL-architect mailing list > > > >UOP...@li... > > > >https://lists.sourceforge.net/lists/listinfo/uopl-architect > > > > > > > > > > > > > > > > > > -- > > > Thomas Miller > > > Wash DC Delphi SIG Chairperson > > > Delphi Client/Server Certified Developer > > > BSS Accounting & Distribution Software > > > BSS Enterprise Accounting FrameWork > > > > > > http://www.bss-software.com > > > http://www.cpcug.org/user/delphi/index.html > > > https://sourceforge.net/projects/uopl/ > > > http://sourceforge.net/projects/dbexpressplus > > > > > > > > > > > > > > > ------------------------------------------------------- > > > SF email is sponsored by - The IT Product Guide > > > Read honest & candid reviews on hundreds of IT Products from real users. > > > Discover which products truly live up to the hype. Start reading now. > > > http://productguide.itmanagersjournal.com/ > > > _______________________________________________ > > > UOPL-architect mailing list > > > UOP...@li... > > > https://lists.sourceforge.net/lists/listinfo/uopl-architect > > > > > > > > > > ------------------------------------------------------- > > SF email is sponsored by - The IT Product Guide > > Read honest & candid reviews on hundreds of IT Products from real users. > > Discover which products truly live up to the hype. Start reading now. > > http://productguide.itmanagersjournal.com/ > > _______________________________________________ > > UOPL-architect mailing list > > UOP...@li... > > https://lists.sourceforge.net/lists/listinfo/uopl-architect > > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://productguide.itmanagersjournal.com/ > _______________________________________________ > UOPL-architect mailing list > UOP...@li... > https://lists.sourceforge.net/lists/listinfo/uopl-architect |