Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP7 Events
Message
De
08/01/2001 02:29:50
 
 
À
02/01/2001 16:15:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00458642
Message ID:
00460434
Vues:
15
>I think we should have a menu option (or some other way) to specify whether we want to Extend the parents behavior or Override it.

Nah, as well as the "Where will the parent code fire" issue, there's also how do you get the return value? Anytime I want to "Extend" code I need to know what teh code returned, without DoDefault(), you can't. THe other half of the time I'd use "Extend" is to intercept parameters in the subclass method, change or add to them or something like that, and then let the parent class do its regular thing.

Using "Extend" would only remove a couple of lines of code will makeing a maitence hassle out of the rest.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform