- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Fortran 2003 allows some components of a drived type to be PUBLIC and others PRIVATE (although, I believe, this feature hasn't been implemented in IVF yet). Is it also the case for PROTECTED attribute? Can one declare some derived-type components PRIVATE (or PUBLIC) and the rest PROTECTED?
Thanks,
Jon
Thanks,
Jon
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - jond
Can one declare some derived-type components PRIVATE (or PUBLIC) and the rest PROTECTED?
Jon,
I might be (very) wrong but as far as I know the standard reads something along the lines:
The PROTECTED attribute imposes limitations on the usage of module entities. If an object has the PROTECTED attribute, all of its subobjects have the PROTECTED attribute.
So you can't make derived-type component protected.
A.

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