Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set Order of Instantiation Of Objects In a Container
Message
 
 
À
23/02/2007 22:55:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
01198480
Message ID:
01198512
Vues:
7
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform