Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is Method Overloading a good or bad thing?
Message
De
07/07/2004 10:47:10
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
07/07/2004 10:40:35
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00919869
Message ID:
00921407
Vues:
15
>>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform