[fpc-pascal] Generics and Scopes
African Wild Dog
paintedlycaon at gmail.com
Mon Nov 7 15:57:53 CET 2016
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fpc-pascal