> I find that the Sun F90 compiler flags the following as an error:
> (WorkShop Compilers 5.0 98/12/21 FORTRAN 90 2.0)
>
> call report("First part of a particularly long error"// &
> " message, continued onto a second line")
>
> and also this:
>
> call report("First part of a particularly long error" &
> //" message, continued onto a second line")
>
> These are both legitimate, aren't they?
I think so.
> The following does work:
>
> call report("First part of a particularly long error &
> &message, continued onto a second line")
>
> but sometimes I want to concatenate a function result with a fixed
> string, and the concatenation operator is the natural point at which
> to break the line.
Right.
All three work with DEC AXPVMS FORTRAN V7.2-1 (Compaq's F95 compiler
under VMS), i.e. no compile-time warnings or errors.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|