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

Home » Public Forums » archive » A strange behaviour of parameters passing
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: A strange behaviour of parameters passing [message #15714 is a reply to message #15630] Fri, 04 June 1999 00:00 Go to previous messageGo to previous message
steinhh is currently offline  steinhh
Messages: 260
Registered: June 1994
Senior Member
In article <3756C16A.A7C41C10@epfl.ch> Daniel SAGE
<daniel.sage@epfl.ch> writes:

> Hi,
> Who can explain me the strange behaviour when I passed my parameters ?
> I create a small and stupid example to see the disfunctionning of IDL.
> Why the first call of the procedure 'one' returns 1 and the second call
> return 2 ? According the documentation of IDL, the second calling is
> correct but
> not the first calling.
> Thank you

The behaviour is just as it should be, and just as documented.
See e.g. parameters:passing mechanism in the online help.

a[*] is an expression, hence a copy of a is made, and the
change in pro one affects only the copy.

Regards,

Stein Vidar
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: regular expressions
Next Topic: Re: Making MPEG Movies

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

Current Time: Sat Nov 29 22:46:27 PST 2025

Total time taken to generate the page: 0.63848 seconds