Procedure, function and return
- Posted by alrobnett Jan 05, 2019
- 1223 views
The distinction between procedure and function is muddy in my mind. The 4.1 manual says that a procedure performs a computation and then gives an example of puts-ing to the screen. I have two basic questions:
Is a return required to keep a stack from getting confused and even over-loaded?
If a procedure or function operates on a global variable is there any need to return a result as opposed to simply using the global variable?