> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of DrDiettrich > Sent: 16 March 2005 10:59 > To: FPC developers' list > Subject: Re: [fpc-devel] "Friend" classes? > > > Michael Van Canneyt wrote: > > > > type TFriendClass = class(TNotMyClass); > > > > This is a simple descendent. > > Yes and no. The only purpose of this declaration is to get access to the > protected members of the class, not to extend the class in any way. note: protected in object pascal isn't really very well protected
if you need to get at a protected method/field/property of a class you can always do so by creating a descendent and using an unchecked typecast. _______________________________________________ fpc-devel maillist - [email protected] http://lists.freepascal.org/mailman/listinfo/fpc-devel
