Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: lionel@quark.zko.dec.com (Steve Lionel)
Subject: Re: Recent Digital Fortan incompatibility for Sign Extension of Untyped Bit Constants
Date: 1996/12/19	[thread overview]
Message-ID: <59bubn$luj$1@nntpd.lkg.dec.com> (raw)
In-Reply-To: 5999tu$mn6@stc06.ctd.ornl.gov



In article <5999tu$mn6@stc06.ctd.ornl.gov>, lmp@xncse1.orfs.ornl.gov 
(Petrie L M) writes:

|>Does this mean that on the VAX, if I 
|>
|>     call sub1 ( x, n, 1 )
|>                       ^
|>where sub1 is
|>
|>     subroutine sub1 ( x, n, i )
|>     dimension x(n)
|>     integer i
|>     ...
|>     end
|>
|>that "i" is going to be a number > 2**16?
|>This doesn't seem reasonable to me, even if it is
|>18 year old behavior.

No, it doesn't.  The behavior I referred to explicitly relates to use of
constants in an expression with a binary operator.  In contexts such as
an actual argument, the largest integer type is used.
-- 

Steve Lionel                      mailto:lionel@quark.zko.dec.com
Fortran Development               http://www.digital.com/info/slionel.html
Digital Equipment Corporation     
110 Spit Brook Road, ZKO2-3/N30    
Nashua, NH 03062-2698             "Free advice is worth every cent"

For information on Digital Fortran, see http://www.digital.com/info/hpc/fortran/



  parent reply	other threads:[~1996-12-19  5:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-12-17  5:00 Recent Digital Fortan incompatibility for Sign Extension of Untyped Bit Constants Takashi Ichihara
1996-12-17  5:00 ` Steve Lionel
1996-12-18  5:00   ` Petrie L M
1996-12-18  5:00     ` Ron Shepard
1996-12-19  5:00     ` Steve Lionel [this message]
1996-12-18  5:00   ` John Hascall
1996-12-19  5:00     ` Steve Lionel
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox