Reply to post: Re: The language is not that important

Can Rust save the planet? Why, and why not

bombastic bob Silver badge
Devil

Re: The language is not that important

There have been a few FORTRAN to C translator efforts. Some of them are pretty good. But yeah writing FORTRAN-like C code is actually pretty straightforward, turning FORMAT statements into equivalent C format strings and using printf.

The only thing to keep in mind is that FORTRAN functions and subroutines pass parameters by reference, so you'd use a pointer rather than a value to make it 100% equivalent. Reminds me of a bug some IDIOT that preceded me created by altering the value within the subroutine without realizing that it altered it in the calling function too, which caused a serious problem. THEN he didn't save his fixed source code and the only source was the broken version. Months later I had to make a change and used his broken code as there was no other source. Then I had to find out what he did and fix it... and that person's name will remain on my S list indefinitely.

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon