Ivan wrote:I had read in pdf manual about procedures. I skimmed down the paragraph to the "Example: Call a function by its name" and assumed that was a missing end of the procedures paragraph.
It's easy to miss that's why I specifically mentioned the bottom. The clue is the presence of
Syntax in bold. This means a new topic is being introduced, and examples from the previous topic are stopping. Mostly it's one article, one topic but now and again...
Ivan wrote:But now, I'm thinking a "normal" basic function is replaced by a procedure call by reference or?
"Yes" but truthfully no(!)... (if you mean what I think you mean...)
The truth is that there isn't a distintion between "normal basic functions" and "other" functions in the way that you think and there are no "procedure calls
not by reference". There are only "entry points to exectuable code" or "not entry points to exectuable code". Either you continue execution sequentially from the current point or you jump to a new entry point or you return from an exit point (or you generate a processor execution error...)
The resolutions that are made are based on
where the code for the function
originates more than
what it is
for (approximately - it's not the whole story):
1) Is the function in the source code being compiled now?
2) Is the function in a static library? (this is probably the group you are thinking about)
3) Is the function in a dynamic library provided by the operating system? (The program itself will need to manage this at runtime but setup won't need to distribute it.)
4) Is the function in a dynamic library not provided by the system? (The program itself will need to manage this at runtime and the setup will need to distribute it too.)
(There is another group too, but that's overcomplicating things somewhat for the time being: 5) is the function "somewhere else")
Once the compiler has sorted all this out it creates a new executable which you can start. This then will need to sort out any preparations for function calls in categories 3-5 and then finally can start work...