Le 24 mars 07 à 02:48 Matin, Guyren Howe a écrit: > On Mar 23, 2007, at 7:23 PM, Arnaud Nicolet wrote: > >> In my opinion, this makes things less clear. Also, even if you hate >> ByRefs (that's also my case), there are "plenty" of other ways to >> return a value, so why bother making another (confusing) way? > > Because it's absurd overkill to define a new class as a way of > holding multiple values, when all that's going on is that you need to > return multiple values from some computation.
Can't you simply return an array of variants? No dictionary or class involved, but you can return all you want in a similar way (which won't "disturb" the way RB actually is based on). > Why should returning a single value be easy but multiple values be a > pain in the proverbial? I don't see anything special about returning > one value. Maybe because it's a basic (in terms of programming language) style? If it's historical, then this is a good reason. _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
