Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Return 2 values from a function
Message
De
16/10/2008 10:51:57
John Baird
Coatesville, Pennsylvanie, États-Unis
 
 
À
16/10/2008 10:43:17
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 9.0
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01355203
Message ID:
01355385
Vues:
18
>> My point is that from a coding standpoint, a method or function should have a single entry point,
>
>How can it have more? (unless you're counting overloading which isn't really the same thing)
>

That was a mistype.. I meant single exit point. :)

>Now you've made me hungry. OK: Shall we settle on two return values : the actual return and one out/ref?


Yep. As I said I do that all the time, except I return structures not OUT parameters unless I'm forced to by TryParse....
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform