Re: [S] flagging Fortran violations

Goran Brostrom (gb@stat.umu.se)
Tue, 14 Jul 1998 14:38:56 +0200 (CEST)


On Tue, 14 Jul 1998, Matt Wand wrote:

> 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?

(1) Use the appropriate compile flag (-C on my system)

(2) Use IMPLICIT NONE in your code.

Goran
---------------------------------------------------------
Goran Brostrom
Department of Statistics tel: +46 90 786-5223
Umea University fax: +46 90 786-6614
S-90187 Umea, Sweden e-mail: gb@stat.umu.se
----------------------------------------------------------

-----------------------------------------------------------------------
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