Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Memory used by Objects
Message
 
À
24/09/1999 10:45:28
Sony Joseph
Dovenmuehle Mortgage Inc
Schaumburg, Illinois, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00268505
Message ID:
00268887
Vues:
18
Sony,

Sylvain is correft when he tells you that the disp memory report is simply telling you that the variable does NOT contain the object but rather points to it.

That emasn that the disp meory report is not accurately telling you about the memory occupied by teh object and therefore any conclusions you may draw from disp memory are faulty at best.

Memory useage is not the issue that make object properties better than variables. Those issues are many and diverse. Thing like, encapsulation, object orientation, inheritence, polymorphism, and many others come to mind.

Also using variables outside of the scope of a single routine promotes a tighter external coupling of the routines regardless to whether those routines are methods of objects or procedures. Tight external coupling is a bad thing. It degrades cohesivness of the code and causes maintenance nightmares.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform