[Info-vax] Text processing examples with Fortran requested
glen herrmannsfeldt
gah at ugcs.caltech.edu
Mon Nov 16 01:08:19 EST 2009
Richard B. Gilbert <rgilbert88 at comcast.net> wrote:
(snip)
> If you use two or more, you are faced with the problem of "packing" and
> "unpacking" the data. I don't believe that either Fortran II or Fortran
> 66 supported a character data type. "Hollerith literals" were the
> best you could do and I don't think they could be used outside of FORMAT
> statements. My copy of "Guide to Fortran Programming" has vanished in
> the mists of time along with the later edition, "A Guide to Fortran IV"
> programming. Fortran IV did support a character data type.
Also in DATA statements and actual arguments to subroutine and
function calls.
The MORTRAN processor reads in the first line of the macro
file containing all the characters to be used in input
to avoid the problems with initializing them in the program.
That also allows one to change the meaning of the special characters
as needed.
-- glen
More information about the Info-vax
mailing list