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:
00340630
Views:
26
>I'm trying to diferentiate between the concept of "passing an object reference" and "passing an object by reference". IOW, to distinguish between:
>
>oFoo = CREATEOBJ('someobject')
>uResult = Bar(oFoo)
>
>and
>
>oFoo = CREATEOBJ('someobject')
>uResult = Bar(@oFoo)
>
>where:
>
>FUNC Bar
>LPARAMETER toObject
>toObject = NULL
>RETURN jRandomResult

Okay, "passing an object reference" and "passing an object by reference". What I am saying is that these startements are equivalent. Now, "passing an object reference by value" and "passing an object by reference" are not equivalent statements. You have indicated that you feel the "by value" is implied. Well, I feel this leaves room for mis-understanding. If you mean "by value," say it.

That is it in a nutshell. Terminology. All you other comments are just losing focus.

When would you pass an object by reference, like
uResult = Bar(@oFoo)
and why?

>FWIW, I'm not digging through obscure tomes to find insignificant trivia to dazzle and amaze you. Clearly we do not agree on what the developer needs to understand about what goes on under the hood. You can't do your job adequately if you don't understand the basis that everything you use is built on.

Haha, Ed, you shouldn't comment on how I do my job. We use COM effectively. My systems are directly responsible for making this company a lot of money. If you were here Ed, you might even be a little impressed. Don't talk about what I do here. You have not a clue.
Joseph C. Kempel
Systems Analyst/Programmer
JNC
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform