- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi.
I've been trying to familiarise myself with some of the F2003 OO features in V11. However, I'm having trouble doing the basic job of adding 'methods' to a derived type. The CONTAINS statement doesn't appear to be implemented for derived types so I've used a procedure pointer.
The trouble is I have to initialise the derived type's field to the appropriate procedure in the main program itself. Am I missing something or doesn't this defeat the object (if you forgive the pun)?
Can anyone help with an example that 'properly' implements methods?
Thanks.
Cliff
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You are correct that type-bound procedures, along with most of the OO stuff, is not in 11.0. That said, I don't understand the problem you're seeing. Can you show an example? What do you mean by "initialized"?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Cliff
Check this thread:
http://software.intel.com/en-us/forums/showthread.php?t=61119
I think the discussion there is something you are trying to do. Since the type bound procedures are not supported yet, we have to use a tortuitous way of using procedure pointers. Still there is bug in the IVF compiler.
Note that IVF 11.0.066 still has the bug that I have reported. Through premier support I know that it is fixed in version 11.1 but we don't know when it would be available.
Abhi

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