Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why can't I pass object property by reference
Message
De
01/04/2002 22:20:59
 
 
À
01/04/2002 22:13:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00639771
Message ID:
00639781
Vues:
13
Thanks! Especially for clarifying that it is a function of the difference between variables and properties, not objects and properties.


>>Is there a reason for this limitation.
>
>My Dad asked me this just other day. I figure its the OO side and the non-OO side of Fox colliding. I don't know how other languages deal with it.
>
>>Why the distinction between allowing the object itself to be passed by reference, but not an object property?
>
>The difference is between variables and properties, not so much objects and properties. Variables can be passed by reference or value whether they are a simple type like a string or an object. Properties can't.
>
>To pass your property by reference, store it in a variable, pass the variable, and set it back.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform