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

Home » Public Forums » archive » functions considered as variables
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: functions considered as variables [message #11117 is a reply to message #11056] Wed, 11 March 1998 00:00 Go to previous messageGo to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Dirk Fabian (dirk@uwast.astro.wisc.edu) writes:

>> The solution is to use the forward_function command in IDL. The syntax
>> is:
>>
>> forward_function function1, function2, ...
>>
>
> Had this problem just the other day.
>
> The other (and coding free) solution is to just compile your driver
> function twice. On the first pass, it will misinterpret the information
> in the driver, but on the second pass, the support functions will be
> interpretted properly as functions (instead of arrays).
>
> I'm not sure if this will work if you have very intricate among your
> support functions.
>
> but IDL> .run foo.pro
> IDL> .run foo.pro
>
> will work for the simple things.

Yes, but for the wrong reasons. Better to write your code
correctly in the first place. (Or, at least understand
what causes error messages and how to fix the underlying
problem and not just the symptom.)

Cheers,

David

-----------------------------------------------------------
David Fanning, Ph.D.
Fanning Software Consulting
E-Mail: davidf@dfanning.com
Phone: 970-221-0438
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Memory Mapped files For IDL (UNIX)
Next Topic: Re: IDL 5.0 widget bug?

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

Current Time: Fri Dec 05 07:50:07 PST 2025

Total time taken to generate the page: 0.01407 seconds