[fpc-pascal] strict private construct

Graeme Geldenhuys mailinglists at geldenhuys.co.uk
Fri Apr 12 14:20:36 CEST 2019

On 12/04/2019 13:10, Graeme Geldenhuys wrote:
> On 12/04/2019 12:40, Mattias Gaertner via fpc-pascal wrote:
>> I get:
>> test1.pas(26,8) Error: identifier idents no member "FDropDown"
> It works in Delphi 10.2.3

Ah wait, the code comment was wrong. Those fields were actually "strict
protected", not "strict private".

Delphi gives a compilation error "E2361 Cannoct access private symbol
...."  for strict private fields, but I can access strict protected fields.

Still not sure if that is any better though. Seems to defeat the whole
point of "strict xxx" construct.


fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal

My public PGP key:  http://tinyurl.com/graeme-pgp

More information about the fpc-pascal mailing list