Re: Why is Cobol ignored in compiler textbooks?

md@sco.COM (Michael Davidson)
Mon, 27 Apr 1992 19:09:25 GMT

          From comp.compilers

Related articles
Why is Cobol ignored in compiler textbooks? tfj@cix.compulink.co.uk (Trevor Jenkins) (1992-04-20)
Re: Why is Cobol ignored in compiler textbooks? nickh@CS.CMU.EDU (1992-04-21)
Re: Why is Cobol ignored in compiler textbooks? preston@dawn.cs.rice.edu (1992-04-22)
Re: Why is Cobol ignored in compiler textbooks? geoff@world.std.com (1992-04-22)
Re: Why is Cobol ignored in compiler textbooks? williams@herky.cs.uiowa.edu (1992-04-23)
Re: Why is Cobol ignored in compiler textbooks? jrbd@craycos.com (1992-04-23)
Re: Why is Cobol ignored in compiler textbooks? drw@nevanlinna.mit.edu (1992-04-24)
Re: Why is Cobol ignored in compiler textbooks? md@sco.COM (1992-04-27)
Re: Why is Cobol ignored in compiler textbooks? ejp@bohra.cpg.oz.au (1992-04-27)
Re: Why is Cobol ignored in compiler textbooks? meissner@osf.org (1992-04-28)
| List of all articles for this month |

Newsgroups: comp.compilers
From: md@sco.COM (Michael Davidson)
Keywords: Cobol
Organization: The Santa Cruz Operation, Inc.
References: 92-04-093 92-04-100
Date: Mon, 27 Apr 1992 19:09:25 GMT



geoff@world.std.com (Geoff Collyer) writes:


>>Also, the _problem_ of the ALTER verb changing the target of a GO TO.
>Unless my memory is really playing tricks, this has been a non-problem for
>years. The 1974 COBOL standard deleted ALTER, as I recall. Even then, it
>was recognised as a botch.


ALTER is definitely still in COBOL-74.


However, I don't know of a single organisation that employs Cobol
programmers that doesn't also have programming standards that explicitly
*forbid* it's use. As a consequence most production Cobol compilers have a
"NO-ALTER" directive that both enforces this prohibition and enables the
compiler to make reasonable attempts to optimise the code.


Actually I *think* that ALTER is even still in COBOL-85 although it is now
obsolescent and will disappear completely from the next version of the
standard.


Interesting piece of trivia is that Cobol segmentation ceases to be
"interesting" once ALTER disappears from the standard since the semantics
of Cobol segmentation are all concerned with the behaviour of ALTER-ed GO
TO statements in the overlay segments ....
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.