Re: The joy of FORTRAN

Liste des GroupesRevenir à col misc 
Sujet : Re: The joy of FORTRAN
De : 186283 (at) *nospam* ud0s4.net (186282@ud0s4.net)
Groupes : alt.folklore.computers comp.os.linux.misc
Date : 18. Oct 2024, 07:25:07
Autres entêtes
Organisation : wokiesux
Message-ID : <x-CcneTnt5bXYoz6nZ2dnZfqnPWdnZ2d@earthlink.com>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
User-Agent : Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0
On 10/18/24 1:41 AM, Lawrence D'Oliveiro wrote:
On 18 Oct 2024 04:35:09 GMT, rbowman wrote:
 
Our source tree still has vestiges of Fortran that go back more than 20
years and are strictly f77.
>
  recnum = 1 read(adrich,15,rec=recnum) totrec
15   format(i10)
>
100 if(recnum.gt.totrec) goto 500
  read(adrich,105,rec=recnum+1) ch
105 format(1a1)
 You know that Fortran 77 introduced if-then and do-while, right?
 
f-strings are the best thing that happened to Python recently.
 I still prefer printf-style formatting. It works across so many different
languages ... even Lisp.
   There are many attempts to do fine-format printing
   "easy". NONE really do it perfectly. Dunno if there
   *is* a 'perfect'.
   Printf is "ok". FORTRAN "format" is kinda OK. Python
   kinda borrows from both FORTRAN and 'C' as does
   Free Pascal.
   Of course TODAY, fine-formatting generally means
   something in a GUI, not for a terminal or line
   printer. I've got an old OKI pin-printer ... very
   noisy, but that's what "format" and such were for.
   Makes for nice tabular reports and paychecks.
   Oh, try Amazon or something and look at the PRICE
   of OKI pin printers these days !!! Kinda miss
   them ... the buzz sounded like you were DOING
   something  :-)

Date Sujet#  Auteur
12 Jul 25 o 

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal