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] | |
+@node Integer-logical conversions
+@section Integer-logical conversions
+@cindex Integer-logical conversions
+
+@command{gfortran} allows integer-to-logical and logical-to-integer
+conversions.
+@node Non scalar character formats
+@section Non scalar character formats
+@cindex Non scalar character formats
+
+@command{gfortran} allows a character array to be used as in a
+@code{FORMAT} tag; the format is then understood as the concatenation of
+all the character strings of the array. The following example program
+@smallexample
+ character*4,parameter :: str(2) = (/ "(I5,", "A4) " /)
+ write (*,str) 12345, "6789"
+ end
+@end smallexample
+outputs "123456789". Assigned Hollerith constants can also be used as
+@code{FORMAT} variables, when code is compiled with the
+@code{-std=legacy} option.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |