weird f77 bug solved....
R. Curtis Jackson
rcj at burl.UUCP
Sat May 5 05:31:29 AEST 1984
Earlier today, I posted a 'bug' in f77, here is the gist:
do 100 d = ..... /* this worked fine */
do 100 d2 = ..... /* this generated a syntax error */
The reason for this is the f77 extension which allows a double
precision exponent, which is a multiplier base 10. In other words,
'1d2' equates to '100' (1 * 10^2). f77, on the statement above,
was squeezing out the space between the '100' and the 'd2' and
parsing it as a double precision constant '100d2'; thus the
syntax error.
Thanks to mhuxj!presley for a quick and accurate answer to this
problem,
--
The MAD Programmer -- 919-228-3313 (Cornet 291)
alias: Curtis Jackson ...![ ihnp4 ulysses cbosgd we13 ]!burl!rcj
...![ ihnp4 cbosgd akgua masscomp ]!clyde!rcj
More information about the Comp.unix.wizards
mailing list