I’ve been testing out all the different function pointer types in FPC to test
their compatibility with each other and I noticed that “is nested” can accept a
global function declaration but “of object” can not. What is the reason for
this exactly? I wouldn’t expect nested function types to accept global
functions but since they do I wonder why “of object” is different.
I think they both have a hidden first parameter (like self) and nested types
simply ignore this for global functions so I would think objects types could do
the same.
Regards,
Ryan Joseph
_______________________________________________
fpc-pascal maillist - [email protected]
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal