Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Access and Assign vs. OOSE
Message
De
23/10/1998 13:06:55
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Titre:
Access and Assign vs. OOSE
Divers
Thread ID:
00149911
Message ID:
00149911
Vues:
73
I was recently rereading Ivar Jacobson's book "Object-Oriented Software Engineering" which is considered a seminal work on OOAD, OOSE and OOP. I came across a statement in which he writes "objects should not directly manipulate the properties of other objects". Later, in context, he is shown to mean that this applies to both reading and writing properties.

Microsoft's COM theory more-or-less says the same thing: objects expose interfaces but not properties.

So....are we reversing central tenets of COM and OOP by using Access and Assign to intercept property calls/puts when there shouldn't be any direct manipulation at all?
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform