Richard Maine wrote:
> The SAVE attribute is what you want.
Not really. The example is trying to emulate the C malloc function--this
returns a fresh *new* block of memory each time it is called. With SAVE, the
allocatable will not be deallocated automatically, but then the allocatable
will keep it's allocation status to the same piece of memory.
So really all I need is an array pointer, as this is the only way to avoid the
"self-cleaning-up" that F95 would otherwise do.
Thanks for the clue nonetheless,
Aleksandar
|