🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.misc
Article #1250

Re: Lessons from Algol (Was: JLG's flogging of horses)

#1250
From: Alex Martelli
Date: Tue, 08 May 1990 18:22
30 lines
1590 bytes
>          Fortran allows both tabulated and free form output. The

...at the whim of the COMPILER, alas!  Fortran-386 by Green Hills,
release 1.8.4, under SCO Unix/386 System V, for this program:
	i4=4
	i5=5
	write(*,*) 'The answer is',i4,'not',i5
	stop
	end
outputs:

The answer is           4 not           5

while many others will indeed approximate a C's printf.  

What a pity that the Fortran standard committee should have chosen
to embark on such ambitious new language design, rather than just
concentrate on these irritating non-portabilities that make it SO
hard to build solid, portable, "sellable" applications in Fortran 77!

(Does Fortran 90, indeed, offer a simple way to emulate a printf() in a
GUARANTEED portable way?  I really hope so, at least).


[MY own opinions - NOT necessarily my employer's!]
-- 
Alex Martelli - CAD.LAB s.p.a., v. Stalingrado 45, Bologna, Italia
Email: (work:) staff@cadlab.sublink.org, (home:) alex@am.sublink.org
Phone: (work:) ++39 (51) 371099, (home:) ++39 (51) 250434; 
Fax: ++39 (51) 366964 (work only; any time of day or night).
Technical Details
Message-ID: <198@cadlab.sublink.ORG>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!usc!rutgers!deejay!gear!cadlab!staff
References: <14358@lambda.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!usc!rutgers!deejay!gear!cadlab!staff
From: staff@cadlab.sublink.ORG (Alex Martelli)
Newsgroups: comp.lang.misc,comp.lang.fortran
Subject: Re: Lessons from Algol (Was: JLG's flogging of horses)
Message-ID: <198@cadlab.sublink.ORG>
Date: 8 May 90 18:22:03 GMT
References: <14358@lambda.UUCP>
Followup-To: comp.lang.fortran
Organization: CAD.LAB, Bologna, Italia
Lines: 30