Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can be read method code at runtime ?
Message
 
 
À
19/11/1999 12:54:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00292948
Message ID:
00293177
Vues:
29
Erik,

>This is not always true David. My framework relies heavily on hooked methods that are empty in the class definition, and over half of the code that I write at the instance level is in methods that are empty in the class definition.

Even if you are using hook patterns, you should still issue DODEFAULT(). Just because there isn't code in the methods today doesn't mean there won't be code there tomorrow. DODEFAULT in this case is very nearly a "zero cost" item to empty class methods. It's a "huge cost" to go back and retrofit them in if you ever put code in the class methods.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform