Re: COBOL's Influence on C



"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.
Unlike the other languages, C's 'switch' statement 'drops through' successive
'case' phrases. EVALUATE is more powerful (flexible) than the others;
perhaps that was what you meant. :-)
--
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