Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
NewObject() vs AddObject()
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
01292009
Message ID:
01292321
Vues:
35
>This would imply that NEWOBJECT() is slower...

As I said in the old thread I pointed to Naomi, I think it depends. Imagine you never ever use SET CLASSLIB OR PROCEDURE, then NewObject will waste time by removing the one it opened alone, which is presumably fast. On the other hand, if you only use SET CLASSLIB OR PROCEDURE, your safest (only?) option is to always use ADDITIVE, creating a big list of procedures, and then each time you use addObject fox will need to scan all those libraries to find the class in question. I am not saying that your implication is wrong, I just think it probably depends and is not really black and white to me.
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform