Re: [fpc-pascal] strict private construct

2019-04-12 Thread Sven Barth via fpc-pascal
Graeme Geldenhuys schrieb am Fr., 12. Apr. 2019, 14:20: > 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,

Re: [fpc-pascal] strict private construct

2019-04-12 Thread Graeme Geldenhuys
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",

Re: [fpc-pascal] strict private construct

2019-04-12 Thread Graeme Geldenhuys
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 > Helpers are broken in several ways, but it seems this is not one of > them. Seems FPC is better than Delphi then. Or its a FPC bu

Re: [fpc-pascal] strict private construct

2019-04-12 Thread Mattias Gaertner via fpc-pascal
On Fri, 12 Apr 2019 12:23:15 +0100 Graeme Geldenhuys wrote: > Hi, > > What exactly is the point of "strict private"? I believe FPC supports > it too, after Delphi added it. It makes absolutely no senses to me. > From the name and original intent, it means it is "really really > private" even in

[fpc-pascal] strict private construct

2019-04-12 Thread Graeme Geldenhuys
Hi, What exactly is the point of "strict private"? I believe FPC supports it too, after Delphi added it. It makes absolutely no senses to me. From the name and original intent, it means it is "really really private" even in the same unit. Yet you do something like this... and you have access to t