Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site moncol.UUCP Path: utzoo!watmath!clyde!burl!ulysses!gamma!epsilon!zeta!sabre!petrus!bellcore!decvax!tektronix!uw-beaver!cornell!vax135!petsd!moncol!john From: john@moncol.UUCP (John Ruschmeyer) Newsgroups: net.bizarre Subject: Re: Bizarre Code Message-ID: <490@moncol.UUCP> Date: Tue, 27-Aug-85 22:12:34 EDT Article-I.D.: moncol.490 Posted: Tue Aug 27 22:12:34 1985 Date-Received: Sat, 31-Aug-85 07:59:17 EDT References: <462@moncol.UUCP> <29712@lanl.ARPA> <554@grkermi.UUCP> Organization: Monmouth College, West Long Branch, NJ 07764 Lines: 39 >From: andrew@grkermi.UUCP (Andrew W. Rogers) >Message-ID: <554@grkermi.UUCP> >Organization: GenRad, Inc., Concord, Mass. > >When writing an overlaid program on HP-2100/RTE, you had to include a statement >like > > IF (2 .EQ. 4) CALL MAIN > >because the linker wouldn't load the main unless there was a reference to it - >but if you actually *called* MAIN, your program would restart... therefore the >above. (Optimization? Constant folding? What are those?) Ulp! By any chance did this FORTRAN let you change the value of a constant by passing it to a subroutine, as in: CALL FOO(2) . . . SUBROUTINE FOO(I) I=I + 2 RETURN END Each is bizarre enough alone, but together..... -- Name: John Ruschmeyer US Mail: Monmouth College, W. Long Branch, NJ 07764 Phone: (201) 222-6600 x366 UUCP: ...!vax135!petsd!moncol!john ...!princeton!moncol!john ...!pesnta!moncol!john Disclaimer: Monmouth College is a mecca for diverse opinions. It is, therefore, highly unlikely that the above opinions are those of anyone but me. Silly quote: Son, you're mixing ponderables again...