Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why can't I pass object property by reference
Message
 
 
À
01/04/2002 23:36:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00639771
Message ID:
00639876
Vues:
22
>>If you could pass property by reference than you would be able to "disconnect" property from the object because you would be able to reference it directly. Can you call it a property after that?
>
>Why is a local variable to a procedure any different than a property to object? Both describe the state of the environmet.

The local variable is scoped to the procedure but can be referenced by it's name as long as it's in the scope. The property doesn't exist by itself w/o object. You cannot reference the property by just it's name because w/o object it belongs to the name of the property is meaningless.
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform