Re: Zeiger in IDL -> call by reference in IDL [message #4180 is a reply to message #4175] |
Mon, 08 May 1995 00:00  |
kak
Messages: 16 Registered: February 1995
|
Junior Member |
|
|
css@ipp-garching.mpg.de writes:
> Weiss jemand, ob in IDL eine Pointeruebergabe moeglich ist,
> (aehnlich wie in C) ? Ansonsten sind ja staendig riesige
> Commonbloecke vonnoeten.
After reading this guys question (if it was possible to pass variables
by reference in IDL) I read the fine manual on that subject which leads
me to another question:
They state that if you pass a variable to a procedure, it is saved in a
temporary location. When returning from the procedure, the new parameter
values are copied back into the corresponding variables.
Does this really mean that IDL allocates new memory for each parameter
variable even when calling by refernce i.e. passing a pointer?
If this is true, does it help to use only COMMON blocks for
large arrays in order to conserve memory? I guess in that case you really
have only one instance of your variable in memory all the time.
Karl Krieger
--
IPP, PO Box 1533 | Phone: +49-89-3299-1655 | E-Mail:
D-85740 Garching | FAX : +49-89-3299-2591 | kak@ipp-garching.mpg.de
|
|
|