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

Home » Public Forums » archive » Re: Returning > 1 variable with functions?
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: Returning > 1 variable with functions? [message #37454 is a reply to message #37450] Wed, 17 December 2003 01:56 Go to previous messageGo to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Jonathan Greenberg wrote:
> Is there any way to write and call a function that returns more than one
> variable? The variables are arrays of different sizes, so merging them into
> a single array is an ugly way of doing it... help!
>
> --j
>
>

Why not returning a structure, or a pointer

return, {x:1,y:2,z:3}

ptr=ptr_new({x:1,y:2,z:3})
return, ptr

Reimar

--
Reimar Bauer

Institut fuer Stratosphaerische Chemie (ICG-I)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
------------------------------------------------------------ -------
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html
============================================================ =======
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: passing parameters in widgets
Next Topic: Starting to make progress with FFTW3 DLM...

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

Current Time: Sat Oct 11 12:59:28 PDT 2025

Total time taken to generate the page: 0.08406 seconds