Xref: utzoo comp.lang.c:6836 comp.lang.fortran:370 Path: utzoo!utgpu!water!watmath!clyde!rutgers!ames!oliveb!sun!dgh!dgh From: dgh%dgh@Sun.COM (David Hough) Newsgroups: comp.lang.c,comp.lang.fortran Subject: implicit declarations Message-ID: <40376@sun.uucp> Date: 28 Jan 88 22:26:19 GMT Sender: news@sun.uucp Lines: 26 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