For Programmers: Free Programming Magazines  


Home > Archive > Fortran > October 2006 > Re: Why these original FORTRAN quirks?; Now : Programming practices









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Why these original FORTRAN quirks?; Now : Programming practices
Andrew Swallow

2006-10-30, 7:15 pm

Rostyslaw J. Lewyckyj wrote:
> Andrew Swallow wrote:
>
> 80A1 :) Man can you think of a way to pessimise the program some
> more? Probably you'd also recommend
> DIMENSION IA(80)
> 1 READ 100,(IA(I),I=1,80)
> 100 FORMAT(80A1)
> etc. :)
> rather than READ 100,IA :), or choosing a variable type
> that would hold the largest number of characters and use an array
> of those type variables. :)


Anything over A2 was not machine independent. A1 allowed the integer
array to pretend to be a string variable.

> That was no TRICK. It is a perfectly valid use of the language
> definition. The ability to read into the hollerith item of a FORMAT
> statement was provided for flexible headings.
> Then are you against execution time assembling of FORMAT statements
> as well? OR even reading in FORMAT statements as was a common
> technique in the BMD and other statistical package programs?
>

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com