Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting Rid of Public Variables
Message
 
À
17/11/2001 16:08:38
Kam Lee
SUNY-Health Science Center
Brooklyn, New York, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00582351
Message ID:
00583163
Vues:
17
>Hi Jim,
> Is the re-assignment of loParms necessary in the statement:
>loParms = Broker.GetTotal(loParms)
>
>Thanks.
>Kam.
Kam,

The reason for assignment is that the broker object's method is returning an object with a RETURN SomeObject command. That object may or may not be the same one we passed in and our code should not "require" that the broker return our object to us. This way the broker and our object are as independent as they possibly can be. The broker may use the object we pass as its return object or it may clone the one we pass and put its return values into the clone. Our calling code is not dependant on which way the broker object acts.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform