Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is Method Overloading a good or bad thing?
Message
From
07/07/2004 10:47:10
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
To
07/07/2004 10:40:35
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00919869
Message ID:
00921407
Views:
16
>>One more: the overloaded methods should be doing the same thing for different sets of parameters. Are we sure everyone is following that sameness thing? The code may be wildly different. We may have a method which says "hello world" when passed a string, and the same-name method which says "go to where you came from" when passed a number. All syntactically correct, and within the rules, except semantical. Or, nine out of ten same-name methods do it the same way, one does it a little different. Go catch the bug.
>
>It sure is possible to abuse this feature. But you can also write overloaded methods that do essentially the same thing.

One can do nasty things in pretty much any language (spoken ones included :). I meant debugging - with the code in one place, it is much simpler to find.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform