Tarl Neustaedter wrote:
My interpretation of the spec is that N-args and N-returns *define* the number of arguments taken and returned. If the called method generates a different number of returns than the caller asked for, the interface must either generate or discard the additional values.
Hi Tarl,
Thanks for the clarification on this. This was the conclusion I reached but from a slightly different perspective: i.e. it is the CIF client that passes the parameter block into the CIF interface. Hence if the client specifies 1 return argument then it is likely that only enough memory has been allocated for 1 argument, and so anything else should just be ignored to prevent memory buffer overruns.
ATB,
Mark.