Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Does a PRG class execute faster than a VCX based class?
Message
De
16/08/2005 14:32:07
 
 
À
16/08/2005 10:20:36
Mike Yearwood
Toronto, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01040117
Message ID:
01041410
Vues:
35
>Every physical thing has a name. Every piece of code and class should be treated like a physical thing. That is IMO the essence of object oriented programming.
<cheapshot>Especially abstract classes</cheapshot> <g>
>If I fill a room with toys without sorting them that is clutter. If there is only one ball, you can find it with lots of digging. If the things are sorted alphabetically and arranged on the walls you can find it faster.

Since vfp works single inheritance, based on the above I'ld argue at least to keep some (lower/last) childclasses in one classlib/file with a rather specific common ancestor. Something like
define class cProjTxtBox as cBaseTxtBox 
  define class cProjNumTxtBox as cProjTxtBox 
    define class cProjYearTxtBox as cProjNumTxtBox 
  define class ... as cProjTxtBox 
regards

thomas
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform