[fpc-pascal] "Is nested" vs "of object" compatibility with global functions
Hairy Pixels
genericptr at gmail.com
Sun May 29 06:37:23 CEST 2022
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
More information about the fpc-pascal
mailing list