- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Is there a limit to the number of derived types that can be nested inside each other (such as A%B%C%D%E... etc.)?
Thanks,
Olivier
Is there a limit to the number of derived types that can be nested inside each other (such as A%B%C%D%E... etc.)?
Thanks,
Olivier
Link Copied
5 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - opmkl
Hi,
Is there a limit to the number of derived types that can be nested inside each other (such as A%B%C%D%E... etc.)?
Thanks,
Olivier
Is there a limit to the number of derived types that can be nested inside each other (such as A%B%C%D%E... etc.)?
Thanks,
Olivier
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Steve,
I would interpret this as 30 as the number of nests for de-referencing in expression as to number of enclosed nesting levels in the declaration. In order to access those members you would be required to use de-referencing functions
value = getFoo(A%B%C%D%E%...%Z) + getFoo(A2%B%C%D%E%...%Z)
where the dummy in getFoo is a type
real function getFoo(Z)
type(someTypeForZ) ::Z
getFoo = Z%AA%BB%CC%DD%EE%...%ZZ%foo
end function getFoo
Jim Dempsey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The entry in the table is labeled "Structure Nesting". I interpret that as the nesting depth of a declaration for derived type.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the answer. 30 is five timesmore than what I need!
I can't wait to use the ASSOCIATE feature of IVF 11. Nested structures are great to organize data, but accessing them means long, unwieldy statements... The shortcuts one can define with ASSOCIATE are perfect to overcome this it seems.
I can't wait to use the ASSOCIATE feature of IVF 11. Nested structures are great to organize data, but accessing them means long, unwieldy statements... The shortcuts one can define with ASSOCIATE are perfect to overcome this it seems.
Olivier
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Until you get the feature consider using a pointer where you would use associate. Use conditional compilation such that when you get the update you can flip over to associate for a quick test.
Jim

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page