View previous topic :: View next topic |
Author |
Message |
acp693
Joined: 04 Sep 2006 Posts: 56
|
Posted: Thu May 07, 2009 11:08 am Post subject: Are allocatable arrays allowed in a Type definition? |
|
|
Hello,
Does FTN95 allow allocatable arrays in a Type definition?
Something like:
Code: | Type Testtype
Integer, allocatable :: a(:)
Real, allocatable :: b(:)
Endtype Testtype |
Best regards
Albert |
|
Back to top |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8210 Location: Salford, UK
|
Posted: Thu May 07, 2009 11:32 am Post subject: |
|
|
You can with the latest release of FTN95.
Automatic deallocation (when going out of scope) probably won't happen. |
|
Back to top |
|
 |
|