[fpc-devel] property cam access private symbol from class in other unit

Hans-Peter Diettrich DrDiettrich1 at aol.com
Thu Jan 5 11:34:13 CET 2012


Martin schrieb:

> Note, that I am not accessing a private field of the parent class (like 
> in the link).
> 
>   TForm1 = class(TForm)
>   public
>     FFoo: TFoo;
>     property Num: Integer read FFoo.FBar;
>   end;

When FFoo is a pointer or reference, it IMO should not be possible at 
all, to select a member of it in a property. AFAIR Delphi only allows 
for access to Record (or Object) members, which reside inside the instance.

DoDi




More information about the fpc-devel mailing list