![]() You don’t know what the compiler will do. ![]() What I dislike is that it introduces ambiguity into the code. It is then the compiler’s job to decide where to put that array: on the stack, or on the heap. You are telling the compiler: I need an array of size N in this function. This is when you declare a new array in a function/subroutine with a size that is dependent on an integer argument to that function. This is the stack_or_heap_array in the example I gave. I haven’t been in fortran for a while, so I sometimes forget what some things are called. This is usually the case for local variables in compiled languages.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |