Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
NewObject() vs AddObject()
Message
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
01292009
Message ID:
01292321
Views:
33
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform