Re: BOZ literal constants, a puzzle for us Standard-loving types.
- From: kargl@xxxxxxxxxxxxxxxxxxxxxxxxxxxx (Steven G. Kargl)
- Date: Thu, 29 Mar 2007 03:33:29 +0000 (UTC)
In article <356dnb_0OfzhtpbbnZ2dnUVZ_tKjnZ2d@xxxxxxxxxxx>,
glen herrmannsfeldt <gah@xxxxxxxxxxxxxxxx> writes:
IBM OS/360 Fortran and VAX/VMS Fortran allow initializing REAL
variables with Z constants in DATA statements as bit patterns,
no REAL() needed or allowed. (Note that in both cases the ''s
are not used. DATA R/Z80C00000/) gfortran should supply a way
to initialize negative integers and bit pattern reals, for
both backward and forward compatibility.
There are no negative integers in gfortran. There is a unary
minus operator and whole numbers. :)
Bit patterns for reals can be done with TRANSFER. Yes, it isn't
portable, but REAL(BOZ) isn't portable either. I'm almost tempted
to suggest that J3 was smoking crack when it approved using BOZs
in REAL, INT, and CMPLX. It appears to be a broken attempt to
fix the broken semantics of TRANSFER.
--
Steve
http://troutmask.apl.washington.edu/~kargl/
.
- Follow-Ups:
- Re: BOZ literal constants, a puzzle for us Standard-loving types.
- From: glen herrmannsfeldt
- Re: BOZ literal constants, a puzzle for us Standard-loving types.
- References:
- BOZ literal constants, a puzzle for us Standard-loving types.
- From: Toon Moene
- Re: BOZ literal constants, a puzzle for us Standard-loving types.
- From: Steven G. Kargl
- Re: BOZ literal constants, a puzzle for us Standard-loving types.
- From: glen herrmannsfeldt
- Re: BOZ literal constants, a puzzle for us Standard-loving types.
- From: Steven G. Kargl
- Re: BOZ literal constants, a puzzle for us Standard-loving types.
- From: glen herrmannsfeldt
- Re: BOZ literal constants, a puzzle for us Standard-loving types.
- From: Steven G. Kargl
- Re: BOZ literal constants, a puzzle for us Standard-loving types.
- From: glen herrmannsfeldt
- Re: BOZ literal constants, a puzzle for us Standard-loving types.
- From: Brooks Moses
- Re: BOZ literal constants, a puzzle for us Standard-loving types.
- From: glen herrmannsfeldt
- BOZ literal constants, a puzzle for us Standard-loving types.
- Prev by Date: Re: Polyhedron 2005 benchmark results
- Next by Date: Re: BOZ literal constants, a puzzle for us Standard-loving types.
- Previous by thread: Re: BOZ literal constants, a puzzle for us Standard-loving types.
- Next by thread: Re: BOZ literal constants, a puzzle for us Standard-loving types.
- Index(es):