Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Returning an Array from a Function
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00338850
Message ID:
00339508
Vues:
28
>The point here is that I didn't know Nigel was speaking of objects; I replied to his message thinking he was speaking of variables. Anyways, not too important.
>
>To say "you pass an object by reference" means the same thing as "you pass an object reference" as far as I'm concerned.
>

There is a huge difference, regardless of your interpretation; pass by reference indicates that the function/method receiving the parameter receives the address of the parameter, as opposed to pass by value, in which case the function/method receives the address of a copy of the value of the parameter.

>As far as creating and then destoying an object in the calling routine, that is not really passing the object. That is just creating something that will be in scope in the called function. But your meaning is understood.
>

I don't think you do. There are languages that permit you to pass an object by value; this means that the receiving function/method gets the address of a copy of the object, as opposed to the address of the copy of an object pointer value. The object passed by value in this case would have a lifespan of the parameter's validity, as opposed to an object reference passed by value as is the case with VFP pass by value, as opposed to the address of the object pointer, the case of VFP's pass by reference. And you absolutely need to understand this difference, since it's an important concept for little unimportant issues like COM!
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform