Re: compile a routine wich inlude a commun [message #47109 is a reply to message #47067] |
Tue, 24 January 2006 13:30   |
Foldy Lajos
Messages: 268 Registered: October 2001
|
Senior Member |
|
|
Hi,
and the odd thing is, that functions sometimes return these references,
not the values:
function f, arg
return, arg
end
a=1
(f(a))=2
help, a
A INT = 2
regards,
lajos
On Tue, 24 Jan 2006, JD Smith wrote:
> By the way, IDL always does pass all arguments by reference, it just
> happens that if you feed a routine a temporary variable, like a
> structure member, or array subset, that variable is freed after the
> call... so it only *seems* these are being passed by value. In fact,
> modifying such arguments modifies the temporary variable, which is of
> course, immediately deleted, and so was quite a useless operation.
>
> JD
>
>
|
|
|