BOZ literal constants
Steve Kargl
sgk@troutmask.apl.washington.edu
Tue Feb 1 21:07:00 GMT 2005
On Tue, Feb 01, 2005 at 05:58:48PM +0800, Feng Wang wrote:
> --- Steve Kargl <sgk@troutmask.apl.washington.edu> ????????
> > Gang,
> >
> > I've never used BOZ literal constants in my code,
> > so I'm unsure of validate forms for these. Could
> > someone send me an example of a BOZ literal constant
> > that includes and excludes the use of kind type
> > parameters.
> >
> BOZ literal constants have no intrinsic data type and assume a data type
> depending on their use. IIRC, they cannot use kind parameter directly.
> For example:
> integer (kind = 4) :: i
> real (kind = 8) :: r
> i = b'11' ! This constant's data type is integer (4)
> r = b'11' ! This constant's data type is real (8)
Thanks Feng. I wasn't sure if one could do "r = b'11'_8"
(my copy of M&R and standard were at work).
--
Steve
More information about the Fortran
mailing list