On Mar 23, 2007, at 5:47 PM, Guyren Howe wrote: > On Mar 23, 2007, at 4:42 PM, Guyren Howe wrote: > >>>>> Functions should return one value. > > Another comment: this allows us to set up very nice symmetric pairs > of functions. For example: > > Sub DateFromInteger(i As Integer) As Integer, Integer, Integer // > Year, Month, Day > Sub IntegerFromDate(Year As Integer, Month As Integer, Day As > Integer) As Integer > > Dim y, m, d As Integer = DateFromInteger(IntegerFromDate(2007, 3, 23)) > > Again: no-one has given me a downside to this proposal.
I'm not sure you've provided an upside. What you propose here could just as easily be done using an array -- Function DateFromInteger(i as Integer) as Integer() or, better yet, Function DateFromInteger(i as Integer) as Date. Charles Yeomans _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
