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

Home » Public Forums » archive » Re: Recursive function/procedure
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 function/procedure [message #15136 is a reply to message #15133] Sat, 24 April 1999 00:00 Go to previous messageGo to previous message
VU KHAC Tri is currently offline  VU KHAC Tri
Messages: 25
Registered: March 1999
Junior Member
Hi folks,

I did not see anyone tells about this problem:

function AAA, a,b,C=c,D=d
return, AAA(a, b, C=c, D=d)
end

Creating this function is very stupid. But the problem is not in this
function.
Writing this function is correct, I think. But if you compile this, the
compilator says there is a syntax error:

return, AAA(a, b, C=c, D=d)
^
Syntax error.

However, if I do a litle strick:
+remove the two last parameters (c,d)
+compile this function (no error here)
+add the two last parameters (c,d)
+re-compile this function - well, it passes with no error.

Now this function already works very well.
Could you tell me why ? How to avoid this stupid doing ?
Best regards,

Tri.


Tri VU KHAC wrote:

> Hi folks,
> How to write a recursive function/procedure ?
> What are programming problems of this technique in IDL ?
> Thanks for help.
> Best regards,
> Tri
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Recursive function/procedure
Next Topic: Re: Mac SEND_EVENT

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

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

Total time taken to generate the page: 1.11524 seconds