Re: object argument passing behaviour changed in v8.2.2? [message #86266 is a reply to message #86265] |
Tue, 22 October 2013 07:43   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Paul van Delst writes:
> It's probably my advancing age
Well, if you are like me, there is no doubt about this. :-)
This situation sorta makes sense to me, though.
I think subscripted arrays are passed by value, not by reference. But,
in the case of an object, the *fields* of the object are often pointers
and other objects (i.e., heap variables) that act like normal variables
and are passed by reference. So, you really do find yourself in this
sort of quantum state where the cat is both alive and dead at the same
time. :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|