Apologies for this in advance, I'm not entirely sure myself what I'm try to ask, but here goes...
After 10 years coding in Progress I now find out that functions can return output parameters - something I never realised! Maybe it's because I've never seen a piece of code that uses functions to output values via parameters.
This blurs the distinction between procs and funcs for me now.
I can think of 2 main reasons to use functions over procedures, namely:
1) you can use functions inline
2) they're supposedly faster than procedure calls when used in iterative loops
When either will a func or proc will do, are there any other factors in choosing one over the other.
After 10 years coding in Progress I now find out that functions can return output parameters - something I never realised! Maybe it's because I've never seen a piece of code that uses functions to output values via parameters.
This blurs the distinction between procs and funcs for me now.
I can think of 2 main reasons to use functions over procedures, namely:
1) you can use functions inline
2) they're supposedly faster than procedure calls when used in iterative loops
When either will a func or proc will do, are there any other factors in choosing one over the other.