Re: Allocating arrays inside a subroutine.
- From: Jan Vorbrüggen <jvorbrueggen@xxxxxxxxxxxxxxx>
- Date: Wed, 30 Aug 2006 12:15:24 +0200
Fortran 90 and 95 were designed originally for such things to be done with pointers, but the use of pointers has some disadvantages (both performance and semantics). Most of us think that this was a design mistake. It was later corrected (in the f95 allocatable TR and in 2003), but these are not yet universally supported, so we are still suffering from the original bad decision 15 years later.
As I understood Richard Maine, they wanted to get F90 and F95 out in time
- well, no later than they were already - and thought they needed more time
to think through all the ramifications of making the extensions described
in the TR. That seems like a wise decision to me.
Now, not including the capability to initialize a POINTER to NULL() in F90,
_that_ was a mistake.
Jan
.
- Follow-Ups:
- Re: Allocating arrays inside a subroutine.
- From: Richard E Maine
- Re: Allocating arrays inside a subroutine.
- References:
- Allocating arrays inside a subroutine.
- From: Timothy Hume
- Re: Allocating arrays inside a subroutine.
- From: deltaquattro
- Re: Allocating arrays inside a subroutine.
- From: Ron Shepard
- Allocating arrays inside a subroutine.
- Prev by Date: Re: Merge sort in fortran 90 for linked lists
- Next by Date: Re: inquire: unknown whether a file is readable?
- Previous by thread: Re: Allocating arrays inside a subroutine.
- Next by thread: Re: Allocating arrays inside a subroutine.
- Index(es):
Relevant Pages
|