--
David Cabana
d...@beach.cis.ufl.edu
UUCP: ...!gatech!uflorida!beach.cis.ufl.edu!drc
In addition, COBOL 85 allows external variables and files. COBOL
programmers have been looking for a way for years to share files among
separately compiled programs. External files provides this mechanism.
> Can anyone out there tell me why cobol still doesn't have local
> variables?
Easy. COBOL is an object-oriented language with an arbitrary limit of
1 object per application. And as you maybe know, all data items within
an object are accessible to all methods that belongs to the object.
--
Robert Claeson E-mail: rcla...@erbe.se
ERBE DATA AB
COBOL does support local variables. Since the 1974 standard, COBOL has
supported separate compilation. Until the 1985 standard, externals were
not supported so communication between modules had to use parameters.
Since called procedures are static like FORTRAN subprograms rather than
recursive like Algol or Pascal, the variables retain their values from
activation to activation unless their has been an intervening cancel
statement. I guess mathematically, COBOL supports abstract
state machines rather than abstract data types.
-- Eric Conrad
+----------------------------------------------------------+
| Eric Conrad - Wright State University |
| "Progress was all right once, but it went on too long." |
+----------------------------------------------------------+