This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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] intrinsic.texi: 13 down


Hi Daniel,

Daniel Franke schrieb:
>> On Fri, Aug 25, 2006 at 03:22:07PM -0700, Brooks Moses wrote:
>>> Hexadecimal constants in the code examples should probably be entered in
>>> as close to a standard form as possible -- i.e., Z'F', not 'F'X

> Changed
>   INTEGER :: a = 'F'X, b = '3'X
> to
>   INTEGER :: a, b
>   DATA a / 'F'Z /, b / '3'Z /

Shouldn't one use z'F' rather than 'F'z?
Besides, I wouldn't use data but rather use  a = z'F'; in addition, I
personally dislike  integer :: a = z'F' as this implies SAVE, which
might not be wanted.

Thus I'd prefer either
  integer, parameter :: a = z'F', b = z'3'
or
  integer :: a, b
  a = z'F'
  b = z'3'
or
  integer, save :: a = z'F', b = z'3'

Tobias


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