ewwwww.....

Functions should return one result. (IMHO)

While I agree that it would be handy for coding shortcuts and  
POSSIBLY make the language a little friendlier, I'd MUCH rather  
prefer separate functions from a debugging standpoint...

- Tom

On 23/03/2007, at 3:52 PM, Guyren Howe wrote:

> <http://www.realsoftware.com/feedback/viewreport.php? 
> reportid=gvzcbkhx>
>
> Allowing a function to return multiple values:
>
> Dim WordCounts(s As String) As Words() As String, Counts() As Integer
>
> would be immensely useful and more beginner-friendly.
>
> The semantics would be that multiple lvalues are supported in an
> assignment. If the number of lvalues differs from the number of
> return values, either the excess lvalues get 0/Nil/""/etc or the
> excess return values get ignored.
>
> This would render the execrable and beginner-hostile ByRef redundant.
> Yay! It would also simplify Events in quite a few cases eg
> ListBox.CompareRows Event.
>
> Regards,
>
> Guyren G Howe
> Relevant Logic LLC
>
> guyren-at-relevantlogic.com ~ http://relevantlogic.com
>
> REALbasic, PHP, Ruby/Rails, Python programming
> PostgreSQL, MySQL database design and consulting
> Technical writing and training
>
>
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
>
> Search the archives:
> <http://support.realsoftware.com/listarchives/lists.html>

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to