Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set Order of Instantiation Of Objects In a Container
Message
 
 
To
23/02/2007 22:55:15
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
01198480
Message ID:
01198512
Views:
9
This message has been marked as a message which has helped to the initial question of the thread.
Hi Chaim,

> But I don't see what's the problem with code that depends on the instantiation order of objects in a container.

For starters, it breaks when you're modifying that container next year (or for me, tomorrow <g>) and *forget* that the objects need to be instantiated in a certain order. You inadvertently change that order and then you've got a debugging situation you don't need to have. Particularly when the requirement, as stated, is at best questionable. ;-)

That's the antithesis of object oriented programming, where no object should be unduly bound by contrived dependency.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform