Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Local scoop wish
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00720623
Message ID:
00721142
Views:
12
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform