[DUG] Accessing an ancestor class private field

Conor Boyd lists at conor.org.uk
Fri Jun 10 11:44:14 NZST 2005


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/59252ef6/attachment-0001.html


More information about the Delphi mailing list