Re: COBOL's Influence on C
- From: "Rick Smith" <ricksmith@xxxxxxx>
- Date: Mon, 12 Nov 2007 10:19:38 -0500
"Judson McClendon" <judmc@xxxxxxxxxxxxx> wrote in message
news:gYHZi.2085$2n.224@xxxxxxxxxxxxxxxxxxxxxxxxx
"Charles Hottel" <chottel@xxxxxxxxxxxxx> wrote:
I f they really want to improve C they should add an EVALUATE statement.
AFAIK, C has always had the 'switch' statement, Pascal has the 'case'
statement, modern BASICs have the SELECT statement, etc., all of which
predated EVALUATE, and from which I suspect EVALUATE was taken.
Microsoft QuickBASIC's SELECT CASE appears
to date from about 1987. COBOL's EVALUATE was
in the 1985 standard; but was first recommended by the
CODASYL COBOL Committee in 1978. I suspect that
1978 predates every concept of "modern BASICs".
Both C's switch and Pascal's case have labels.
FORTRAN's computed GOTO and COBOL's GO TO
DEPENDING have labels and predate both C's switch
and Pascal's case. Each of the languages: FORTRAN,
COBOL, C, and Pascal, use, similarly, an integral value
to transfer control to a label.
COBOL's EVALUATE uses conditions, instead of labels.
Conditions and labels are not the same despite the
appearance of similarity in some circumstances.
I suspect that EVALUATE was designed to accommodate
decision tables, to include a capability to replace some uses
of GO TO DEPENDING, and that other programming
languages had no influence in regard to EVALUATE.
Modern BASICs also use conditions in the SELECT CASE
statement and may have been influenced by COBOL. <g>
.
- Follow-Ups:
- Re: COBOL's Influence on C
- From: Robert
- Re: COBOL's Influence on C
- From: John Reagan
- Re: COBOL's Influence on C
- References:
- COBOL's Influence on C
- From: Rick Smith
- Re: COBOL's Influence on C
- From: Robert Jones
- Re: COBOL's Influence on C
- From: Rick Smith
- Re: COBOL's Influence on C
- From: Charles Hottel
- Re: COBOL's Influence on C
- From: Judson McClendon
- COBOL's Influence on C
- Prev by Date: Re: OT: No level is safe, zero tolerance
- Next by Date: Re: OT: No level is safe, zero tolerance
- Previous by thread: Re: COBOL's Influence on C
- Next by thread: Re: COBOL's Influence on C
- Index(es):
Relevant Pages
|