Re: Double precision random number generator in Fortran 77



On 17 Nov 2005 02:51:52 -0800, os2_user@xxxxxxxxxxx wrote:

> paul v birke wrote:
>> it compiles and runs under watcom

> That's strange. Lahey doesn't like it and my Fortran book says it's an
> error.

It's not strange. A standard-conforming compiler is allowed to do anything it
likes when presented with a nonstandard program. One of the possibilities is
to accept it. This is called an "extension".

>> > The Fortran 77 version doesn't compile. There is an illegal data
>> > statement for the variable mti which is in COMMON. It can be fixed by
>> > having a block data statement. Has anyone else noticed this error?
>> >

Lots of Fortran 77 compilers accept this as an extension.



--
Dave Seaman
Judge Yohn's mistakes revealed in Mumia Abu-Jamal ruling.
<http://www.commoncouragepress.com/index.cfm?action=book&bookid=228>
.



Relevant Pages

  • Re: "init.c: No such file or directory."
    ... Some Fortran compiles compile to the C language then compile/ ... I ran the program with a debugging option (gdb) and I got the ... There is absolutely no warranty for GDB. ...
    (comp.lang.fortran)
  • Re: Why arent you using Bigloo?
    ... >>binary choice, use Fortran, and those who would use Basic. ... > Rhizome/pi compiles scheme code to C code wich then must be linked to a ... Is 45k LOC lean for a Scheme implementation? ...
    (comp.lang.scheme)
  • Total n00b gets compiler error with FORMAT statement...
    ... I've been asked to compile a Fortran program called Promotif 3.0 on one of our machines over here and I've got a little problem with a gettting one of the files compiled. ... $ must be the last specifier in format string at ... Warning: Obsolete: PAUSE statement at ... The program compiles eitherway but is the A supposed to go first or the whitespace? ...
    (comp.lang.fortran)
  • Re: Total n00b gets compiler error with FORMAT statement...
    ... I've been asked to compile a Fortran program called Promotif 3.0 on one of our machines over here and I've got a little problem with a gettting one of the files compiled. ... $ must be the last specifier in format string at ... Warning: Obsolete: PAUSE statement at ... The program compiles eitherway but is the A supposed to go first or the whitespace? ...
    (comp.lang.fortran)
  • Re: Double precision random number generator in Fortran 77
    ... > it compiles and runs under watcom ... Lahey doesn't like it and my Fortran book says it's an ... >>>Fortran can be found at ... >> having a block data statement. ...
    (sci.math.num-analysis)