Newbie : checking semantics
Mike Meyer
mwm at mired.org
Mon May 16 03:45:28 EDT 2005
Dennis Lee Bieber <wlfraed at ix.netcom.com> writes:
> Or the infamous, and maybe urban legend, of the early FORTRAN
> compiler in which literal constants weren't...
>
> call inc(1)
> write(6, 100) 1
> 100 format("I5")
> ....
>
> subroutine inc(i)
> i = i + 1
> return
>
> ... would print " 2"
It's not an urban legend. I used to sit in a booth and answer student
programmers questions at a university, and saw this bug more than once
from people learning FORTRAN on an IBM 370.
<mike
--
Mike Meyer <mwm at mired.org> http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.
More information about the Python-list
mailing list