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

Home » Public Forums » archive » Re: Problem Compiling and Using 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: Problem Compiling and Using Functions [message #46804] Wed, 04 January 2006 16:13 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
someone@someplace.com writes:

> DOH!... Doh!... doh!... (echoing off into the distance) :)
>
> Thanks for your fast response. It works now.
>
> I'm new to IDL and I'm not used there being this difference between
> functions and procedures.
>
> So, procedures don't return anything and functions *always* have to
> return something and the calling function/procedure has handle them
> correctly.

Yes, this is correct. But if you are going to write your
functions to return 0s, you have surmised correctly that
you could just as well use a procedure. All arguments
to procedures and function alike (including keyword
arguments) can be passed by reference, so getting things
into and out of procedure (as well as functions) is
reasonably trivial.

Just keep chanting to yourself "IDL is NOT C, IDL is NOT C."

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: archivos
Next Topic: Re: Unicode Question

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

Current Time: Sun Oct 12 05:40:55 PDT 2025

Total time taken to generate the page: 1.27759 seconds