Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pass param by reference or private variable?
Message
 
 
À
01/10/2019 16:51:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01671293
Message ID:
01671308
Vues:
54
>>>>I agree, 100%. I can see a lot of potential. The only problem is that now I want to refactor hundreds of the routines where this approach can be applied :) I have to resist the temptation :)
>>>
>>>Btw, it also good for passing parameters when you have too many of them
>>
>>I agree. In fact this particular method receives 9 parameters. And I may just replace them with one object with 9 properties. Thank you.
>
>An extra bonus by using an object as parameter is that your "parameters" will have names, so you don't have to remember their order.

Good point
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform