[fpc-pascal] how to make a type private to the unit but not defining it in the implementation section?
Dennis Poon
dennis at avidsoft.com.hk
Fri Mar 8 08:16:48 CET 2019
Anthony Walter wrote:
> type
> _PrivateData = class
> private type THidden = record Name: string; end;
> end;
>
> ... and later in the implementation section of the same unit ...
>
> var H: _PrivateData.THidden; begin H.Name := 'Hello'; end;
>
>
But that will have the same problem of extra long method declaration name
procedure _PrivateData.THidden.Method1;
begin
end;
Dennis
More information about the fpc-pascal
mailing list