Re: Voyager (2nd Edition)
----boundary-LibPST-iamunique-2106815863_-_-
Content-type: text/plain
"Rex Couture" <rex{([at]})nowhere.xy
> The assertion is that [in FORTRAN]
> DO 20 I100
> could be mistyped as
> DO20I100
> and interpreted by the compiler as an assignment statement instead of the
> intended DO loop. While such an error is possible, it is worth pointing
> out that it would require a specific combination of three typing errors,
> any one of which should be noticed by the programmer.
Actually, only one error. FORTRAN would skip all whitespace.
The text "DO 20 I100" would have been interpreted as "DO20I = 1.100"
The compiler would concatenate "DO 20 I" and interpret it as a name
of a variable.
I have heard this story several times, the first time it would have
been a lunar probe that crashed. I am not sure if the story is not
apocryphal. Would be interesting to know the original source.
I vaguely remember seeing this story in a well-known book on
computer programming, forgot which.
> In addition, the error is easily avoided with the statement
> IMPLICIT NONE, which has been available and known to FORTRAN
> programmers and encouraged for at least 20 years. The IMPLICIT
> NONE statement requires that all variables be explicitly declared,
> thereby catching many such typing errors.
IMPLICIT NONE was officialy introduced in FORTRAN-77, though I seem
to remember seeing it in CDC FORTRAN earlier. The abovementioned
story refers to FORTRAN IV, I think. But since we do not know the
source, the story may not be true.
Regards,
Wojtek
--------------------------------------------
To unsubscribe from this mailing list, send a message containing the word "unsubscribe" to:
blackbox-request{([at]})nowhere.xy
To get a list of valid e-mail commands and instructions on their usage, send a message containing the word "help" to the above address.
Send any problem reports or questions related to this email list to the list owner at
owner-blackbox{([at]})nowhere.xy
Current posting policy:
a) To post you should use the same address by which you are subscribed to the mailing list. That way, the list server will recognize you as subscriber and forward your posting immediately, without creating any overhead.
b) If, for some reason, you cannot post from the address, by which you are subscribed, your message will be moderated to avoid spam. Please understand that moderation will often cause some delay, in particular over weekends or holydays.
----boundary-LibPST-iamunique-2106815863_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhb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