[fpc-devel] Type definition

Peter Vreman peter at freepascal.org
Sat Mar 4 21:28:39 CET 2006


> If there compelling reason why type definitions cannot be included in
> class/object definitions?
> Make it mode FPC to keep folks happy :)
>
> Quite often a type is defined in INTERFACE part, but only used within
> class/object defined in same unit.
> 1)  This means that type is public.  This is not always good thing in
> OOese.
> 2)  Unit must be specified in child's child's USE list.

It breaks code and is therefor incompatible. A type symbol is never
searched in an object, class or record symtable.






More information about the fpc-devel mailing list