Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Prgs vs Methods
Message
 
À
14/01/1999 19:40:14
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Titre:
Divers
Thread ID:
00176041
Message ID:
00176381
Vues:
46
>>I have heard that argument, but, interestingly, no one who made it ever gave me a situation where it was true. The only time I have found it helpful to use a proc is when the routine is simply an extension of the language.
>
>
>Jim,
>
>What do you mean when you say, * an extension of the language? *
>

Renoir,

I mean a fucntion that is non-specific and that I would someday think may be added to the VFP language. For example; I often need to calculate the last or first day of a month. I have UDF's for those things. It just didn't make sense to me to create a dateManipulation class to hold those operations. They both simply take a date as an argument and return a single number as a result.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform