Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing array property of an object
Message
 
À
01/04/1999 20:25:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00204115
Message ID:
00204539
Vues:
15
>>You cannot pass any object property by reference and that is as it should be.
>
>May I disagree with "as it should be"? :)
>
>Vlad

Vlad,

You can disagree with anything you like. However, passing a member of an object to another object without using the reference is a violation of everything that OO is about.

An object encapsulates function and data, that data is an integral part of the object. The only way the data of an object should be affected is through the object itself. Passing a property by reference allows the data aspect of the object to be manipulated without communication with the object itself. That's why I said "as it should be." And I believe it is as it should be.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform