[fpc-pascal] Generics and Scopes
Michael Van Canneyt
michael at freepascal.org
Mon Nov 7 16:09:20 CET 2016
On Mon, 7 Nov 2016, African Wild Dog wrote:
> I have tried to compile some delphi projects using the latest FPC (3.0.0)
> release, and i got several errors related to Ggenerics feature. Reading the
> FPC documentation (section 8.8 - A Word About Scope) i have found that FPC
> requires that all external types and procedures used in the the Generic
> type implementation must be visible when the Generic type is specialized.
> It is intended to change such compiler behavior in the future? It is
> incompatible with Delphi and moreover it force us to break the
> encapsulation of the Generic types.
It may well be that this part of the text is no longer valid.
Sven Barth would need to look at it to see if it is still so.
More information about the fpc-pascal