I wrote:
> Probably, because there was always DATA and BLOCK DATA (the latter
> had its problems with some loaders) to insure proper initialization
> of other data types.
Peter Shenkin <[log in to unmask]> writes:
> No. There are also local unsaved variables to which this doesn't
> apply.
There's always
LOGICAL VIRGIN
SAVE VIRGIN
DATA VIRGIN /.TRUE./
IF (VIRGIN) THEN
C initialize local variables
ENDIF
> In C and also, I think, Fortran (tell me if I'm wrong, please)
> external data (e.g., COMMON) is guaranteed to be initialized
> effectively to 0 anyway.
I don't think that the `guaranteed' part is true. It might be true
for many of implementations, however.
But we're beating a dead horse. NULL() works for me.
--
Thorsten Ohl, Physics Department, TU Darmstadt -- [log in to unmask]
http://heplix.ikp.physik.tu-darmstadt.de/~ohl/ [<=== PGP public key here]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|