comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » compile a routine wich inlude a commun
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: compile a routine wich inlude a commun [message #47109 is a reply to message #47067] Tue, 24 January 2006 13:30 Go to previous messageGo to previous message
Foldy Lajos is currently offline  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
>
>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Picture of Prairie
Next Topic: MODE in IDL?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 05:22:03 PDT 2025

Total time taken to generate the page: 0.39935 seconds