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

Martin lazarus at mfriebe.de
Wed Jan 4 20:26:52 CET 2012


On 04/01/2012 17:27, Jonas Maebe wrote:
> On 04 Jan 2012, at 18:13, Martin wrote:
>
>> Only tested with 2.4.4; so if changed in 2.6 ....
> http://wiki.freepascal.org/User_Changes_2.6.0#Inaccessible_symbols_and_properties
>

I just upgraded to 2.6.0 - It still compiles (recompiling fpc trunk now, 
may test that later)


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;

TForm1 and TFoo are not related.







More information about the fpc-devel mailing list