Advantages of passing by value or read-only reference

Passing by value or read-only reference allows you to:
One primary use for passing by value or read-only reference is that you can allow less stringent matching of the attributes of the passed parameter. For example, if the definition is for a numeric field of type packed-decimal and length 5 with 2 decimal positions, you must pass a numeric value, but it can be:
If the prototype requires an array of 4 elements, the passed parameter can be:

Feedback