|
|
Re: Output Parameter in pipelined function [message #348045 is a reply to message #348016] |
Mon, 15 September 2008 08:35 |
|
Kevin Meade
Messages: 2103 Registered: December 1999 Location: Connecticut USA
|
Senior Member |
|
|
Further, as a general rule, out parameters in a function are BAD FORM. The idea of a function is to return only one value through its return item. Using out parameters in a function can thus lead to "side affects" in the code.
Think of out parameters in a function as akin to using GOTO.
One never actually must use GOTO.
There is one possibly two places where GOTO is quite useful and does not break "normalized code" strategies.
So too does it go for out parameters in functions. For examples, I suggest you examine Oracle functions and look for the few in which Oracle has used out parameters in a function. I know these exists for I have seen them. I do not however recall any one in particular so if you are really interested in "GOOD FORM" coding, you will have to do some searching.
Good luck, Kevin
|
|
|