Re: Recursive Call



"Chuck Stevens" <charles.stevens@xxxxxxxxxx> wrote:
> Note that within COBOL that is compliant with the three most recent
> standards, both direct and indirect recursion is prohibited. If an
> implementor allows it (or provides additional syntax to support it), it's
> an extension and it does whatever the implementor says it does.

Why in the world would recursion be forbidden? I haven't used it often in
COBOL, but I did find it extremely useful in writing a parts explosion
module once. The code, which was pretty elegant, would have been somewhat
tacky without recursion.
--
Judson McClendon judmc@xxxxxxxxxxxxx (remove zero)
Sun Valley Systems http://sunvaley.com
"For God so loved the world that He gave His only begotten Son, that
whoever believes in Him should not perish but have everlasting life."


.



Relevant Pages

  • Re: Recursive Call
    ... both direct and indirect recursion is prohibited. ... >> an extension and it does whatever the implementor says it does. ... > COBOL, but I did find it extremely useful in writing a parts explosion ... pitfalls were and what the appropriate syntax was. ...
    (comp.lang.cobol)
  • Re: Recursive Call
    ... standards, both direct and indirect recursion is prohibited. ... extension and it does whatever the implementor says it does. ...
    (comp.lang.cobol)
  • RE: StackOverflowException
    ... The StackOverflowException is thrown when the execution stack overflows ... very deep or unbounded recursion. ... code to detect and prevent a stack overflow. ... Microsoft Online Community Support ...
    (microsoft.public.dotnet.framework)
  • Re: portably printing a size_t
    ... The code struggles to avoid pointless use of recursion, ... it's likely they don't support either. ...
    (comp.lang.c)
  • Re: Broken shared object on Solaris 10 x64
    ... Even on quite recent SPARC I get build times near 1 hour. ... I've only built gcc* on Solaris/SPARC, ... should say somthing about 64-bit support. ... In order to understand recursion you must first understand recursion. ...
    (comp.unix.solaris)