Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why can't I pass object property by reference
Message
From
01/04/2002 22:13:20
 
 
To
01/04/2002 21:47:31
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00639771
Message ID:
00639779
Views:
18
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform