× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



The limit to the depth of recursion is limited to the maximum number of call
stack entries, available resources (memory) in the PAG(or some such animal).
I think the call stack entry counter would be the outside limit and I
beleave that is an int giving you something like 2 to 4 billion entries. You
would most likely run out of other resources before reaching that limit.

Duane Christen




-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx]On Behalf Of Carel Teijgeler
Sent: Thursday, March 23, 2006 12:25 PM
To: rpg400-l@xxxxxxxxxxxx
Subject: Re: Recursive calls in RPG ILE


Tommy,

Be aware, that recursive calls is restricted to a certain depth of nesting;
I think it is 32 levels deep.

Anyway, it is not unlimited.

Regards,
Carel Teijgeler

*********** REPLY SEPARATOR  ***********

On 22-3-06 at 10:45 Holden Tommy wrote:

>do you know of any issues with recursive call processing in sub procs??
>
>basically I want to mimic the C functionality where a function can call
>itself & return values etc...
>
>I know historically recursive calls on the 400 has not been a good thing...




As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.