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

Home » Public Forums » archive » recursive 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: recursive functions? [message #21624 is a reply to message #21526] Thu, 31 August 2000 09:08 Go to previous message
Nando Iavarone is currently offline  Nando Iavarone
Messages: 48
Registered: December 1998
Member
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Nando Iavarone wrote:
<blockquote TYPE=CITE>ENVI> .compile recFun
<br>% Compiled module: RECFUN.
<br>% Compiled module: RECFUNTEST.
<br>ENVI> err=recFunTest(12,15)
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 12.Prrrr&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
15.Prrrr
<br>% Variable is undefined: RECFUN.
<br>% Execution halted at:&nbsp; RECFUN&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& ;nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& ;nbsp;&nbsp;
5
<br>&nbsp; /home/nando/InPhase/procedureDiProva/recFun.pro
<br> %&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&nbsp;
RECFUNTEST&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 19
<br>&nbsp; /home/nando/InPhase/procedureDiProva/recFun.pro
<br> %&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&nbsp;
$MAIN$
<br>ENVI>
<br>&nbsp;
<br>&nbsp;
<br>&nbsp;</blockquote>
it seems that the first time IDL 'compile' recFun function,
<br>it consider recFun (in the code it is a function) a variable and on
run it does not find it.
<br>if I recompile the source, recFun is now in the table of the functions
and it works.
<br>as a workaround I compile the source twice and it works, but I don't
like this.
<br>I am sure there is something I have not considered.
<p>I don't remember well, but 5.3 would have a mechanism in compiling to
avoid this.
<br>Is it true?
<br>Oh oh........ but I am working with 5.2 (to use ENVI 3.2).
<p>Bye.
<br>&nbsp;
<pre>--&nbsp;
Nando Iavarone
Advanced Computer System - SPACE DIVISION
via Lazzaro Belli, 23
00040&nbsp; Frascati - RM
Tel: +39-6-944091 (switchboard)
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 9440968 (direct)
E-mail:&nbsp;
&nbsp;&nbsp;&nbsp; f.iavarone@acsys.it
&nbsp;&nbsp;&nbsp; FrdndVrn@altavista.net</pre>
&nbsp;</html>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: opening and display large file
Next Topic: what happened to time/date functions?

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

Current Time: Fri Oct 10 10:21:09 PDT 2025

Total time taken to generate the page: 1.43877 seconds