On Fri, 17 Dec 1999, Jan van Oosterwijk wrote:
>
> At 14:10 17-12-99 +0100, Phillip Helbig wrote:
>
> >> > real, parameter :: aa(6)=(/1,2,3,4,5,6/)
> >> >1
> >> >2
> >> >3
> >> >4
> >> >5
> >> >6
My compiler got all the values right with decimal points. I dropped those
.0s while copying the results into my mailer. Sorry.
> >>
> >JvO> This output is numerically correct, but non-standard behaviour of
> >JvO> your compiler.
> >>
> >JvO> 'aa' being of type real, the printed result SHALL contain a decimal
> point.
> >JvO> F90 standard 10.5.2.1 and 10.8.1.
> >
> >Isn't the use of non-real constants in the array constructor also in
> >violation of the standard?
>
> No,
> Standard 5.1 only says that each value in the array constructor must
> have the same type and type-parameters.
>
>
>
> ---
> Meilleures Salutations,
> Best Greetings,
> /---
> Jan van Oosterwijk
> Computing Centre
> Delft University of Technology
> Postbus 354
> 2600 AJ Delft
> Netherlands / Pays-Bas
> Phone: +31 15 278 50 17
> Fax: +31 15 278 37 87
>
>
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|