For a function to return a value in Pascal the assignment FunctionName := SomeVal; is used. I assume it doesn’t stop the function execution in that exact place as return in C does. Is there something similar to C return in Pascal? (I’m using FreePascal compiler)
For a function to return a value in Pascal the assignment FunctionName := SomeVal;
Share
You can use the Exit procedure.