|
At 06:20 PM 12/6/02, you wrote:
On Fri, 6 Dec 2002, Rich Duzenbury wrote: > > >But, I think the original poster was asking if a 'module' can call itself > >recursively. By that, I'm assuming he means: "can the main procedure of > >an ILE RPG program call itself recursively?" > > As far as I can tell, modules are not executable. Therefore, a module > cannot call itself, nor any other thing. > That's why I restated the question as 'the main procedure of an ILE RPG program' so that you wouldn't choke the term "module". Apparently, it didn't work. :(
Ha!, I guess not. Good try, though.
So, that answers the question. A subprocedure can be called recursively. A main procedure cannot, even if it is not the entry procedure.
There is probably static storage allocated by the compiler that more than one instance of the program cannot share. Regards, Rich
As an Amazon Associate we earn from qualifying purchases.
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.