Subject: | |
From: | |
Reply To: | |
Date: | Tue, 26 May 1998 15:44:19 -0700 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Pat Sarkar writes:
>Is recursion allowed in Cobol or not? I tried a recursive program - other
>than giving me a warning, the compiler did fine. The program runs great,
>too!
The behavior of a recursive call is implementation-dependent, which is
the reason for the warning. The construct is nonportable.
In fact, I suspect that all COBOL implementations now support recursion
just because the run-time systems have to support recursion for other
languages. But it's still not "standard."
-- Bruce
--------------------------------------------------------------------------
Bruce Toback Tel: (602) 996-8601| My candle burns at both ends;
OPT, Inc. (800) 858-4507| It will not last the night;
11801 N. Tatum Blvd. Ste. 142 | But ah, my foes, and oh, my friends -
Phoenix AZ 85028 | It gives a lovely light.
btoback AT optc.com | -- Edna St. Vincent Millay
Mail sent to [log in to unmask] will be inspected for a
fee of US$250. Mailing to said address constitutes agreement to
pay, including collection costs.
|
|
|