Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Local scoop wish
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00720623
Message ID:
00721142
Vues:
13
I guess we will have to agree to disagree, because I see the following code more readable:
FUNCTION DoSomething (int Param)
FUNCTION DoSomething (string Param)
I can see from the class declaration (or from Intellisense) what types the parameter can be. I don't have to open the code to see it.

>You can see VFP weak typing as a bad thing but sometimes i use it and it can be really usefull:
>Function DoSomeThing( vParm )
>
>	DO CASE
>		Case Vartype(vParm) == "O"
>			*-- Do someting
>		Case Vartype(vParm) == "N"
>			*-- Do someting else
>		*...
>	EndCase
>
>EndFunc
>This pretty much simulate method overloading ! Thank to VFP weak typing.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform