Path: utzoo!utgpu!water!watmath!clyde!att!pacbell!ames!ncar!noao!arizona!naucse!rrr
From: rrr@naucse.UUCP (Bob Rose )
Newsgroups: comp.lang.c
Subject: Re: C vs. FORTRAN
Message-ID: <773@naucse.UUCP>
Date: 11 Jul 88 16:28:43 GMT
References: <3136@phoenix.Princeton.EDU> <225800038@uxe.cso.uiuc.edu> <5234@ihlpf.ATT.COM>
Organization: Northern Arizona University, Flagstaff, AZ
Lines: 18

In article <5234@ihlpf.ATT.COM>, nevin1@ihlpf.ATT.COM (00704a-Liber) writes:
 > Security in FORTRAN (with respect to calling conventions)??  Look at the
 > 
 > 	subroutine foo(j)
 > 	j = 5
 > 	end
 > 	...
 > 	call foo(1)
 > 
 > This passes through the compiler with no problem.  If you look at the
 > run-time error, it's usually a memory violation and not a
 > compiler-generated error.  Some security.


Oh boy! You must be using some sort of new compiler. The old one's (not
all of course) would after running this code change _all_ integer constants
of value 1 to value 5. Try debugging the code after that occurs.
                                   -bob