Quote:
Originally Posted by specci48
There is no restriction on this, because the return value is always a (single) object. So any type (even structures) will do...
|
I am afraid that this is not the case for the optimising compiler. Due to the way internal Subs are declared in optimised code "Return" can return only Value types i.e array elements such as "Array(2)" but not array references such as "Array()." It
is possible for libraries to return Array/struct references that can be assigned to already "Dimmed" arrays but this is a special case.
I seem to be missing the point of the original question.

I know of no computer language that can return more than one result from a function.