Hi everyone,
on occasion I pass a reference to a function (here: 'f1') to anther function (here: 'f2').
Naturally the type of f1 has to be specified in the declaration of f2.
f1 can potentially be part of an object or inside another function, therefore its type changes (addition of 'of object'/'is nested' is required).
The implementation of f2 however is not affected by the type of f1.
Is it possible to adress several types of f1 with a single f2?
Overloading f2 is an easy solution; however as the implementations of f2 are identical, it appears somewhat verbose.
The reference for procedures
https://freepascal.org/docs-html/ref/refse17.html
does not mention anything.
Thanks in advance