Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning an Array from a Function
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00338850
Message ID:
00339393
Views:
30
>>I'm a little out to lunch here. Your point is that *objects* are always passed by reference *regardless*.
>>
>>i.e. You can't pass object by value.
>>
>
>You never pass an object, you pass an object reference, which can be by value or by reference. To actually pass an object by value, you'd have to create a copy of the object in the calling code and destroy the created object copy on return.

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.

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.

Take care,
Joe
Joseph C. Kempel
Systems Analyst/Programmer
JNC
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform