I believe you are saying the same thing. If I have a class A and pass it to method myMethod(A), it will be pased by reference. Here is what we might have -
myA holds a reference to the new A class. When myMethod is called, myA isn't passed into the method, a copy of the pointer myA points to is passed in. Thats why inside myMethod you can't change where myA is pointing, but you can call methods on the class myA points to. HTH.
The simple definition is: C does not have "true" pass by reference. Java does not have "true" pass by reference. C++ does. Passing pointers to objects in C is not pass by reference. It is passing by value the pointer to an object, just as Java works. Pass by reference is a C++ construct that involves defining your method to take references as formal parameters, something that you cannot do in C. As long as you think I am passing a reference to the object by value you should be fine.
Piscis Babelis est parvus, flavus, et hiridicus, et est probabiliter insolitissima raritas in toto mundo.
Joined: Sep 05, 2003
Thank McNarry; You cleared it up a bit.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: Difference between pass by reference and passing a copy of the reference by value