[S] flagging Fortran violations

Matt Wand (mwand@hsph.harvard.edu)
Tue, 14 Jul 1998 08:31:18 -0400 (EDT)


My question is about Fortran 77, rather
than S-PLUS. But since Fortran and C programming
is a big part of S-PLUS programming for many of
us I feel justified posing it here.

I often get bugs in my S-PLUS/Fortran programmes
that are due to

(1) referencing an array element that is outside
the range of the allowable indices.

(2) referencing an undeclared variable.

These bugs would be much faster to find if there
was a way to have a violation such as (1) or (2)
flagged whenever they occur.

Does anyone know if and how this can be done?

best regards,

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Matt Wand, Associate Professor, |
+ Department of Biostatistics, +
| Harvard School of Public Health, |
+ 677 Huntington Avenue, Boston, MA 02115, USA +
| phone: +1 (617) 432 1056 (work), +1 (781) 665 7823 (home) |
+ e-mail: mwand@hsph.harvard.edu, fax: +1 (617) 739 1781 +
| internet: http://www.biostat.harvard.edu/~mwand |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu. To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message: unsubscribe s-news