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:13:20
 
 
À
01/04/2002 21:47:31
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00639771
Message ID:
00639779
Vues:
17
>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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform