Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Access and Assign vs. OOSE
Message
De
26/10/1998 14:54:36
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
 
 
À
26/10/1998 14:07:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00149911
Message ID:
00150614
Vues:
43
John, Erik--

I've following this thread all day, and I appreciate the lucid, substantive discussion.

A couple of thoughts:

"Coupling" one class to another by letting it refer by name to another class's property makes sense (I've found) in tightly related classes. So, it's a matter of degree and surely the literature should (if it doesn't) deal with degree of relationship. (I don't know the *right* words here.)

Erik's comment that using _assign and _access to intercept and route a calculation, say, to the correct property assignments _by_the_owning_object is a very nice point. It does in fact seem to yield exactly the same encapsulation as a method.

From out here in the trenches, thanks for the *real life* discussion guys.

>>The property 'accessed' using access/assign doesn't even have to be the property that actually stores the value!

..snip

>This exact method was demostrated to me in VB. And it's a good one.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform