Procedure, function and return

new topic     » topic index » view thread      » older message » newer message

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?

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu