View Single Post
  #7 (permalink)  
Old 05-12-2008, 12:18 PM
agraham's Avatar
agraham agraham is offline
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,683
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Quote:
Originally Posted by specci48 View Post
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.
Reply With Quote