[DUG] Accessing an ancestor class private field
David Brennan
dugdavid at dbsolutions.co.nz
Fri Jun 10 11:52:55 NZST 2005
Good point. I've never used RTTI to access private variables. TBH I wasn't
sure it was possible so I'm leaving you to champion that method ;-)
Cheers,
David.
_____
From: delphi-bounces at ns3.123.co.nz [mailto:delphi-bounces at ns3.123.co.nz] On
Behalf Of Conor Boyd
Sent: Friday, 10 June 2005 11:44 a.m.
To: 'NZ Borland Developers Group - Delphi List'
Subject: RE: [DUG] Accessing an ancestor class private field
I still think RTTI is the only "real" way, but I accept it's more work than
yours or Kyley's suggestions.
Cheers,
C.
_____
From: delphi-bounces at ns3.123.co.nz [mailto:delphi-bounces at ns3.123.co.nz] On
Behalf Of David Brennan
[snip]
Private variables are more difficult. I think Kyley's suggestion is the only
real way but it's dangerous if anything changes.
_____
From: delphi-bounces at ns3.123.co.nz [mailto:delphi-bounces at ns3.123.co.nz] On
Behalf Of Todd Martin
I seem to recall someone posting a message showing a hack of how to access a
private field in an ancestor class.
Something along the lines of redeclaring the field in the descendant class.
I've tried to find the solution, but with no luck.
Can someone please remind me. Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ns3.123.co.nz/pipermail/delphi/attachments/20050610/5164ad07/attachment.html
More information about the Delphi
mailing list