[comp.lang.fortran] implicit declarations

dgh%dgh@Sun.COM (David Hough) (01/29/88)

If it's good enough for {C, Fortran} it's good enough for {Fortran, C}!

I always compile Fortran code I write with the -u option which on Suns
is equivalent to IMPLICIT UNDEFINED A-Z in each subprogram.   
That effectively eliminates implicit definitions.
-u probably works the same way on all f77 derivatives.

I sure wish C worked the -u way - no implicit definitions by default.  
How tired I get of bug reports that things like this don't work:

main()
{
double d ;

d = sqrt(1.0);
printf(" %e \n",d);
}

mostly coming from programmers who are proud of knowing nothing about
Fortran.


David Hough

ARPA: dhough@sun.com
UUCP: {ucbvax,decvax,allegra,decwrl,cbosgd,ihnp4,seismo}!sun!dhough