Re: Allocatable arrays in derived types
- From: paul.richard.thomas@xxxxxxxxx
- Date: Tue, 29 Apr 2008 05:58:51 -0700 (PDT)
The gfortran implementation of allocatable components attempts to
realise the extension to F95, TR15581: ftp://ftp.nag.co.uk/sc22wg5/N1351-N1400/N1379.pdf
Amongst other things, automatic memory deallocation/allocation on
assignment or with derived type constructors, automatic deallocation
on leaving scope and MOVE_ALLOC are implemented. In principle, memory
leakage should be prevented automatically. In practice, gfortran does
not quite manage this in the case of nested constructors but seems to
do OK otherwise. I am working on this and related issues and expect
to fix it soon.
Regards
Paul Thomas
.
- Follow-Ups:
- Re: Allocatable arrays in derived types
- From: Damian
- Re: Allocatable arrays in derived types
- References:
- Allocatable arrays in derived types
- From: Gib Bogle
- Allocatable arrays in derived types
- Prev by Date: Re: GUIs with Dislin -more examples
- Next by Date: Re: Allocatable arrays in derived types
- Previous by thread: Re: Allocatable arrays in derived types
- Next by thread: Re: Allocatable arrays in derived types
- Index(es):