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


On Sat, Aug 26, 2006 at 05:01:53PM +0200, Tobias Burnus wrote:

(EBNF) snipped.

> Therefore I would like to see z'F' rather than 'F'z, even
> though gfortran supports both.

Yes, I agree.  z'F' is the form specified by the standard.
'F'z is again a g77 compatible form.

> 
> > The other points you raise are valid, but maybe beyond the scope of those 
> > showcase snippets?!
> 
> Well, my idea is that those snippets give new Fortran programmers
> some good example. Putting the initialization in the same line
> I would not recommend because of the SAVE side effect. I didn't
> say you should input all those versions.
> 
> I actually wanted to say that I prefer something like
>   real :: a,b
>   a = z'F'
>   b = z'3'

I believe that this is technically nonconforming code.
As I understand the Standard, a BOZ can only appear in
a data statement.

> to the current
>   INTEGER :: a, b
>   DATA a / 'F'Z /, b / '3'Z /

Change this to "DATA a / Z'F' /, b / Z'3' /",
and you have conforming code.

> and to the previous
>   INTEGER :: a = 'F'X, b = '3'X

The above is also, I believe, nonconforming.

-- 
Steve


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