Click here to Skip to main content
15,886,919 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: A Fortran question Pin
jmaida23-Feb-23 11:37
jmaida23-Feb-23 11:37 
GeneralRe: A Fortran question Pin
0x01AA23-Feb-23 7:48
mve0x01AA23-Feb-23 7:48 
GeneralRe: A Fortran question Pin
MarkTJohnson23-Feb-23 9:36
professionalMarkTJohnson23-Feb-23 9:36 
GeneralRe: A Fortran question Pin
Southmountain23-Feb-23 14:37
Southmountain23-Feb-23 14:37 
GeneralRe: A Fortran question Pin
jmaida23-Feb-23 11:43
jmaida23-Feb-23 11:43 
GeneralRe: A Fortran question Pin
Rick York23-Feb-23 12:05
mveRick York23-Feb-23 12:05 
GeneralRe: A Fortran question Pin
jmaida23-Feb-23 12:11
jmaida23-Feb-23 12:11 
GeneralRe: A Fortran question Pin
trønderen23-Feb-23 13:03
trønderen23-Feb-23 13:03 
Another good thing about old style Fortran: You wouldn't experience any stack overflow, no out of heap space, no null pointer exception. Pre-90 Fortran didn't allow recursion, and had no dynamic allocation. All memory could be statically allocated. No run time load, no risk.

Lots of computing tasks can be solved without recursion, without new()/pointers. If you absolutely must do a recursion, you can manage your own stack by an array. Similar with linked lists.

In my student days, I was a TA for the Introduction to Programming course, taught to all Tech. University students. Some of the "classical" departments were still clinging to Fortran as the only viable language; half of the students were more modern, learning Pascal. The courses were identical, except for the language (even the textbook was identical but for the coding examples). 3 out of 4 hand-ins were identical. For the last one, the Pascal students were to build and manipulate a linked list, so the Fortran students had a completely different #4 hand-in.

One of the 'Fortran students' approached me, rather crossed: Why shall the others learn something that we don't get to learn? So I tried to explain to her how you could have a record field tell where you could find the next piece of data. I believe that I explained it referring to memory as a large array, the pointer being the index in that array. A few days later, this freshman girl approached me again, this time with Fortran code to solve the Pascal linked list problem, the 'heap' was a Fortran array, pointers were integers indexing the array, and the code certainly did solve the problem, giving the proper output.

If a freshman, non-computer girl (I think she was studying chemistry) can do it in Fortran, then a seasoned Fortran programmer with thirty years of experience should be able to!
GeneralRe: A Fortran question Pin
jmaida23-Feb-23 18:11
jmaida23-Feb-23 18:11 
GeneralRe: A Fortran question Pin
jsc4224-Feb-23 0:16
professionaljsc4224-Feb-23 0:16 
GeneralRe: A Fortran question Pin
trønderen24-Feb-23 0:57
trønderen24-Feb-23 0:57 
GeneralRe: A Fortran question Pin
jsc4224-Feb-23 5:05
professionaljsc4224-Feb-23 5:05 
GeneralRe: A Fortran question Pin
trønderen24-Feb-23 6:04
trønderen24-Feb-23 6:04 
GeneralRe: A Fortran question Pin
giulicard24-Feb-23 5:36
giulicard24-Feb-23 5:36 
GeneralRe: A Fortran question Pin
trønderen24-Feb-23 8:38
trønderen24-Feb-23 8:38 
GeneralRe: A Fortran question Pin
giulicard25-Feb-23 0:10
giulicard25-Feb-23 0:10 
GeneralRe: A Fortran question Pin
FreedMalloc23-Feb-23 16:37
FreedMalloc23-Feb-23 16:37 
GeneralRe: A Fortran question Pin
Matthew Wilson24-Feb-23 4:44
Matthew Wilson24-Feb-23 4:44 
GeneralRe: A Fortran question Pin
Bruce Patin24-Feb-23 4:58
Bruce Patin24-Feb-23 4:58 
GeneralRe: A Fortran question Pin
Mike Johnston24-Feb-23 5:35
professionalMike Johnston24-Feb-23 5:35 
GeneralRe: A Fortran question Pin
Cpichols24-Feb-23 5:56
Cpichols24-Feb-23 5:56 
GeneralRe: A Fortran question Pin
Igor Pankovcin24-Feb-23 8:10
Igor Pankovcin24-Feb-23 8:10 
GeneralRe: A Fortran question Pin
Roger House24-Feb-23 12:31
Roger House24-Feb-23 12:31 
GeneralRe: A Fortran question Pin
D Scott Baeder24-Feb-23 17:52
D Scott Baeder24-Feb-23 17:52 
GeneralRe: A Fortran question Pin
Southmountain25-Feb-23 3:45
Southmountain25-Feb-23 3:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.