Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

OO features of V11

Cliff
Beginner
496 Views

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

0 Kudos
2 Replies
Steven_L_Intel1
Employee
496 Views

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"?

0 Kudos
abhimodak
New Contributor I
496 Views

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

0 Kudos
Reply