I have a question - pure curiosity; no immediate use - about the *.inc (understood that adding "uses *.pas" is more canonical outside the compiler code and the LCL, FCL, ... frameworks).
Is it possible to use them as "Callback" left to the discretion of each user (in the sense of
"someone other than me, will tell what is the called code later, after the compilation", like the Windows's Enumxyz callbacks, whose results are sent back by Windows to the calling program).
I'm explaining: it's a common practice in Php to call in a framework a function hypothetically present, if its signature will exist, ie if the hypothetical function has been created and coded in the same namespace as its research, by the user of the framework.
I know that there is a Pascal code interpreter (I don't know it
).
Has anyone ever seen a fully integrated Pascal solution like this (if so, where is there an example?): a compiled code including a Pascal interpreteur, and some Pascal Callbacks written in a text file like an *.inc ( no, no: I'm not completely off topic
) for example [✶]?
[✶] it could then be an interpreted function with normalized name \ signature, which would retrieve the normalized parameter values from a line in a text file - function_Foo_code.inc , function_Foo_input_output.inc - and returns its result in an array in another line for example.