------- Comment #1 from burnus at gcc dot gnu dot org  2007-03-15 21:03 -------
> A compiler option that used a minimal width for output
> for list directed WRITEs would be convenient.

There are pros and cons for both.

Assume:
  print *,(huge(0),i=1,6)
  print*,(i,i=1,6)
  print*,(i,i=10000,60000,10000)
  end

I would argue that
   2147483647  2147483647  2147483647  2147483647  2147483647  2147483647
           1           2           3           4           5           6
       10000       20000       30000       40000       50000       60000
is more readable than:
 2147483647 2147483647 2147483647 2147483647 2147483647 2147483647
 1 2 3 4 5 6
 10000 20000 30000 40000 50000 60000

Whereas for your example, the second format looks better.

On my system, the minimal-width version is used by g95, NAG f95 and sunf95
whereas gfortran and ifort use the wide-spaced version.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31190

Reply via email to