Information générale
Catégorie:
Codage, syntaxe et commandes
.
>
>And David, I thought that the whole premise of both Windows and Objects *IS* the passing of messages to/fro. I cannot see how this would "break" encapsulation.
passsing msgs - yes but not calling direct methods
other object shouldn't know or care about the internal workings of other objects
What we implemented here is to add a single method (called DISPATCH) to all objects and have objects pass msgs to each other using this method
this way if some object does not know how to handle a message it gets it just doesn't do anything etc.
Arnon
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement