4
I’m new to Pascal and I’m looking for how to call functions or procedures from an existing archive in Pascal.
There is a function in Julia called include('filename.jl')
where I add functions already written in a previously made notepad so I can use them while running the compiler.
I wonder if there is such an application in Pascal. If so, how should I write in the text file? Could you give me a clear example of your application? I’m looking for good hours how to do this, but nothing satisfying.
Using directives?
{$I nomearquivo}
or{$INCLUDE nomearquivo}
?– GabrielOshiro
I saw an example on the Internet, but I didn’t understand it very well. Could you explain to me what the command does (or give me a link that explains) and how to use and when to use? And its functionality?
– Renan
I think I get it now. What you want is to use a library of external functions to your file. You want to make a beautiful module that performs a task, but you want to use external functions and procedures to your file, that’s it?
– GabrielOshiro
@Gabrieloshiro Yes!! Exactly what Julia does. = ) It is not necessary to program the functions in the terminal to use them, but
– Renan
So I guess what you want is described in my second answer. Try running the example I posted the way it is, if it works, try to adapt to your program.
– GabrielOshiro