S
Stephen Greenwood
Guest
I am learning to use procedures in Skill, more particularly in Ocean.
I would like to write a procedure that can either modify variables
that have been passed ("call by reference"). Is this possible? I
didn't see a way to do that in the manual description for "procedure
()", and by experimenting I know that the default operation is "call
by value".
One alternative would be to have the procedure return multiple values,
which are then used to set multiple variables. But looking at the
manual it appears that the procedure can only return a single value.
If that's the case, then my suspicion is that the only way to return
multiple values is to return a list and to then manipulate the list.
Thoughts or comments on these questions? Thank you for your time.
Apologies if this has already been answered before, but I had no
success searching the archives.
I would like to write a procedure that can either modify variables
that have been passed ("call by reference"). Is this possible? I
didn't see a way to do that in the manual description for "procedure
()", and by experimenting I know that the default operation is "call
by value".
One alternative would be to have the procedure return multiple values,
which are then used to set multiple variables. But looking at the
manual it appears that the procedure can only return a single value.
If that's the case, then my suspicion is that the only way to return
multiple values is to return a list and to then manipulate the list.
Thoughts or comments on these questions? Thank you for your time.
Apologies if this has already been answered before, but I had no
success searching the archives.