This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch, fortran, documentation] random_seed, random_number


Daniel Franke wrote:
On Thursday 05 April 2007 23:52:04 Jerry DeLisle wrote:
+@code{INTEGER} and rank one. It is @code{INTENT(IN)} and the size of
+the array must be larger or equal to number returned by the @var{SIZE}
+argument.

change to: equal to the number returned by .... This is in two places.

Done to avoid confusion.


Nonetheless, I didn't make the "larger or equal" up, it's specifically mentioned in the standard (final draft), section 13.14.86: "shall be a default integer array of rank one and size >= N". The examples then have: CALL RANDOM_SEED (SIZE = K)
CALL RANDOM_SEED (PUT = SEED (1 : K))

As with diffs, it's useful to include context -- Jerry, did you mean s/equal to number/equal to the number/, or s/larger or equal to number/equal to the number/? :)


To be pedantic, if you meant the former, then it ought to be "...the size of the array must be larger than or equal to the number returned...." -- note the "than" added after "larger".

- Brooks


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]